/* --- TechRadar Design System --- */
:root {
  --tr-bg-dark: #070b19;
  --tr-bg-darker: #04060e;
  --tr-magenta: #e60067;
  --tr-magenta-hover: #ff0073;
  --tr-cyan: #00d2ff;
  --tr-purple: #7928ca;
  --tr-text-dark: #121826;
  --tr-text-muted: #64748b;
  --tr-border-light: #e2e8f0;
  --tr-pro-badge: #88003f;
  --tr-trg-badge: #111827;
  --tr-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--tr-font);
  color: var(--tr-text-dark);
  background-color: #f8fafc;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* =========================================
   TOP HEADER (DARK NAV)
   ========================================= */
.top-header {
  background-color: var(--tr-bg-dark);
  color: #ffffff;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 100;
}

.brand-wrapper {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
}

.logo-text {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.logo-radar-icon {
  display: inline-flex;
  align-items: center;
  color: var(--tr-magenta);
  margin-left: 2px;
}

.logo-radar-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.tagline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #94a3b8;
  text-transform: uppercase;
}

/* Right tools */
.top-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.edition-select {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.edition-select:hover {
  background: rgba(255, 255, 255, 0.12);
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding-right: 14px;
}

.social-icon-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 12px;
  transition: color 0.2s, transform 0.2s;
}

.social-icon-btn:hover {
  color: #ffffff;
  transform: scale(1.1);
}

.auth-nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.header-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.notif-btn {
  position: relative;
}

.notif-badge {
  position: absolute;
  top: 2px;
  right: 6px;
  width: 7px;
  height: 7px;
  background-color: var(--tr-magenta);
  border-radius: 50%;
}

.admin-toggle-btn {
  background: linear-gradient(135deg, #e60067, #7928ca);
  color: #fff;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(230, 0, 103, 0.4);
}

/* =========================================
   MAIN CATEGORY NAVIGATION & MEGA MENU
   ========================================= */
.main-nav-container {
  background-color: #ffffff;
  border-bottom: 1px solid var(--tr-border-light);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.category-menu-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

.nav-item {
  position: static;
}

.nav-link {
  display: block;
  padding: 14px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover,
.nav-item.active .nav-link,
.nav-item.open .nav-link {
  color: #0070f3;
  border-bottom-color: #0070f3;
}

.nav-right-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-pro {
  background-color: var(--tr-pro-badge);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  transition: opacity 0.2s;
}

.badge-pro:hover {
  opacity: 0.9;
}

.badge-trg {
  background-color: var(--tr-trg-badge);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-trg::before {
  content: '❖';
  color: var(--tr-cyan);
  font-size: 10px;
}

/* =========================================
   MEGA DROPDOWN PANEL (MATCHES SCREENSHOTS)
   ========================================= */
.mega-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-top: 1px solid #f1f5f9;
  border-bottom: 2px solid #e2e8f0;
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.12);
  padding: 30px 48px;
  display: none;
  animation: fadeInDown 0.18s ease-out forwards;
  z-index: 1000;
}

.mega-dropdown-panel.show {
  display: block;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mega-menu-grid {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 36px;
}

.mega-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mega-group {
  display: flex;
  flex-direction: column;
}

.mega-group-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.mega-group-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mega-link {
  font-size: 13px;
  color: #334155;
  font-weight: 500;
  transition: color 0.15s, transform 0.15s;
  cursor: pointer;
  display: inline-block;
}

.mega-link:hover {
  color: #0070f3;
  transform: translateX(2px);
}

/* =========================================
   TRENDING BAR
   ========================================= */
.trending-bar {
  background-color: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 24px;
  font-size: 12px;
}

.trending-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  white-space: nowrap;
}

.trending-label {
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.trending-items {
  display: flex;
  align-items: center;
  gap: 24px;
}

.trending-item {
  color: #334155;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s;
}

.trending-item:hover {
  color: #0070f3;
}

.trending-item::after {
  content: '';
  display: inline-block;
  margin-left: 24px;
  width: 1px;
  height: 12px;
  background-color: #cbd5e1;
  vertical-align: middle;
}

.trending-item:last-child::after {
  display: none;
}

/* =========================================
   HERO / WHAT'S HOT SECTION (DARK SECTION)
   ========================================= */
.hero-outer {
  background: var(--tr-bg-dark);
  position: relative;
  color: #ffffff;
  overflow: hidden;
}

/* TechRadar's signature neon gradient line */
.neon-accent-bar {
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #e60067 0%, #7928ca 45%, #00d2ff 100%);
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 36px 24px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

/* Left: What's hot */
.whats-hot-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.hero-card-featured {
  position: relative;
  background: #0d1326;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}

.hero-card-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.hero-img-wrap {
  position: relative;
  height: 420px;
  overflow: hidden;
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-card-featured:hover .hero-img-wrap img {
  transform: scale(1.03);
}

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #0d1326 15%, rgba(13, 19, 38, 0.6) 50%, transparent 100%);
}

.hero-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  z-index: 2;
}

.hero-tag {
  display: inline-block;
  background-color: var(--tr-magenta);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.hero-headline {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 14px;
}

.hero-excerpt {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 90%;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #94a3b8;
}

.author-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
  font-weight: 600;
}

.author-chip img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

/* Secondary hot cards */
.hot-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 10px;
}

.hot-subcard {
  background: #0d1326;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s;
}

.hot-subcard:hover {
  transform: translateY(-2px);
}

.hot-subcard-img {
  height: 160px;
  overflow: hidden;
}

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

.hot-subcard-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hot-subcard-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 10px;
}

/* Right: Latest news (EXACTLY MATCHING SCREENSHOTS) */
.latest-news-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.all-news-link {
  font-size: 13px;
  font-weight: 800;
  color: var(--tr-magenta);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.all-news-link:hover {
  color: var(--tr-magenta-hover);
}

.latest-news-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-item-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: opacity 0.15s;
}

.news-item-row:hover {
  opacity: 0.9;
}

.news-rank-number {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  min-width: 24px;
  font-family: inherit;
}

.news-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-item-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
}

.news-item-meta {
  font-size: 11px;
  color: #94a3b8;
}

.news-item-thumb {
  width: 76px;
  height: 56px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

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

/* =========================================
   BODY CONTENT / FEED SECTION
   ========================================= */
.main-feed-container {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2.3fr 1fr;
  gap: 40px;
}

.feed-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--tr-text-dark);
  padding-bottom: 10px;
}

.feed-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
}

.feed-filter-tags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-tag-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  background-color: #e2e8f0;
  color: #334155;
  transition: background-color 0.15s, color 0.15s;
}

.filter-tag-pill.active,
.filter-tag-pill:hover {
  background-color: #0f172a;
  color: #ffffff;
}

/* Article Cards Grid */
.articles-feed-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-feed-card {
  display: flex;
  gap: 24px;
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid var(--tr-border-light);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.article-feed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
}

.article-feed-card-img {
  width: 260px;
  height: 170px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.article-feed-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.article-feed-card:hover .article-feed-card-img img {
  transform: scale(1.04);
}

.article-feed-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feed-card-category {
  font-size: 11px;
  font-weight: 800;
  color: #0070f3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.feed-card-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 8px;
}

.feed-card-excerpt {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 12px;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #fef08a;
  color: #854d0e;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 10px;
}

/* Sidebar */
.feed-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-widget {
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
  border: 1px solid var(--tr-border-light);
}

.sidebar-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--tr-magenta);
}

.newsletter-box {
  background: linear-gradient(135deg, #070b19, #1a2238);
  color: #ffffff;
  border-radius: 8px;
  padding: 28px;
}

.newsletter-box h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.newsletter-box p {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-input {
  padding: 12px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 13px;
}

.newsletter-input::placeholder {
  color: #94a3b8;
}

.newsletter-btn {
  background-color: var(--tr-magenta);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  padding: 12px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.newsletter-btn:hover {
  background-color: var(--tr-magenta-hover);
}

/* =========================================
   SIDEBAR ADVERTISERS & ADSENSE SPACES
   ========================================= */
.sidebar-ad-container {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--tr-border-light);
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

.ad-label-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #94a3b8;
}

.ad-info-badge {
  background: #f1f5f9;
  color: #475569;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
}

.ad-banner-box {
  border-radius: 8px;
  padding: 22px 18px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ad-banner-infrawire {
  background: linear-gradient(135deg, #070b19 0%, #0f172a 60%, #1e1b4b 100%);
  border: 1px solid rgba(230, 0, 103, 0.35);
  box-shadow: 0 8px 24px rgba(230, 0, 103, 0.15);
}

.ad-banner-virterion {
  background: linear-gradient(135deg, #061826 0%, #0b253a 60%, #034b6e 100%);
  border: 1px solid rgba(14, 165, 233, 0.35);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.15);
}

.ad-banner-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(230, 0, 103, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ad-banner-badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(230, 0, 103, 0.2);
  color: #ff3388;
  border: 1px solid rgba(230, 0, 103, 0.4);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.ad-banner-title {
  font-size: 19px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.25;
}

.ad-banner-tagline {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.45;
  margin-bottom: 14px;
}

.ad-banner-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #e2e8f0;
}

.ad-banner-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ad-price-prefix {
  font-size: 11px;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
}

.ad-price-val {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
}

.ad-price-val small {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}

.ad-banner-cta {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #e60067, #c20056);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 13px;
  padding: 12px 18px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(230, 0, 103, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.ad-banner-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(230, 0, 103, 0.55);
}

.ad-banner-cta-cyan {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.ad-banner-cta-cyan:hover {
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.55);
}

/* =========================================
   ARTICLE READER MODAL
   ========================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #ffffff;
  border-radius: 10px;
  width: 100%;
  max-width: 900px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  z-index: 10;
  transition: background-color 0.15s;
}

.modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

.article-reader-hero {
  position: relative;
  height: 380px;
  width: 100%;
}

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

.article-reader-content {
  padding: 36px 48px;
}

.reader-category {
  font-size: 12px;
  font-weight: 800;
  color: var(--tr-magenta);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.reader-title {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 16px;
}

.reader-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--tr-border-light);
}

.reader-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.action-pill-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--tr-border-light);
  color: #334155;
  transition: background-color 0.15s, color 0.15s;
}

.action-pill-btn.bookmarked {
  background-color: var(--tr-magenta);
  color: #ffffff;
  border-color: var(--tr-magenta);
}

.reader-body-text {
  font-size: 17px;
  line-height: 1.75;
  color: #1e293b;
  margin-bottom: 32px;
  white-space: pre-line;
}

/* Pros and Cons Box */
.verdict-box {
  background: #f8fafc;
  border: 1px solid var(--tr-border-light);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 36px;
}

.verdict-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.pro-list, .con-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pro-item::before {
  content: '✔ ';
  color: #16a34a;
  font-weight: 800;
}

.con-item::before {
  content: '✖ ';
  color: #dc2626;
  font-weight: 800;
}

/* Comments section */
.comments-container {
  border-top: 2px solid var(--tr-border-light);
  padding-top: 30px;
  margin-top: 30px;
}

.comments-header {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
}

.comment-input-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.comment-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid var(--tr-border-light);
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
}

.comment-submit-btn {
  align-self: flex-start;
  background-color: #0f172a;
  color: #ffffff;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
}

.comment-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--tr-border-light);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 12px;
}

.comment-author {
  font-weight: 700;
  color: #0f172a;
}

/* =========================================
   ADMIN / EDITORIAL DASHBOARD MODAL
   ========================================= */
.admin-modal-content {
  padding: 32px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--tr-border-light);
  padding-bottom: 14px;
}

.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-card {
  background: #f1f5f9;
  padding: 16px;
  border-radius: 6px;
  text-align: center;
}

.stat-number {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.article-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f8fafc;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--tr-border-light);
  margin-bottom: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

.form-control {
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid var(--tr-border-light);
  font-size: 13px;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--tr-magenta);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  align-self: flex-start;
  transition: background-color 0.2s;
}

.btn-primary:hover {
  background-color: var(--tr-magenta-hover);
}

/* =========================================
   SEARCH OVERLAY
   ========================================= */
.search-overlay-bar {
  display: none;
  background: #ffffff;
  border-bottom: 2px solid var(--tr-magenta);
  padding: 16px 24px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 120;
}

.search-overlay-bar.show {
  display: block;
}

.search-input-wrap {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
}

.search-field {
  width: 100%;
  padding: 12px 18px;
  font-size: 16px;
  border: 2px solid var(--tr-border-light);
  border-radius: 6px;
  outline: none;
}

.search-field:focus {
  border-color: #0070f3;
}

.search-results-dropdown {
  max-width: 900px;
  margin: 12px auto 0;
  background: #ffffff;
  border-radius: 6px;
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.search-result-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-result-item:hover {
  background-color: #f8fafc;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background-color: var(--tr-bg-darker);
  color: #94a3b8;
  padding: 60px 24px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 30px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  font-size: 12px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-container,
  .main-feed-container {
    grid-template-columns: 1fr;
  }
  .mega-menu-grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, 1fr);
  }
  .social-icons {
    display: none;
  }
}

@media (max-width: 640px) {
  .article-feed-card {
    flex-direction: column;
  }
  .article-feed-card-img {
    width: 100%;
    height: 200px;
  }
  .hot-subgrid {
    grid-template-columns: 1fr;
  }
  .tagline {
    display: none;
  }
  .stats-bar {
    grid-template-columns: 1fr 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   VPS TESTING METHODOLOGY & SCIENTIFIC BENCHMARK SCHEMA
   ======================================================== */
.vps-methodology-section {
  max-width: 1240px;
  margin: 32px auto 0;
  padding: 0 16px;
  font-family: inherit;
}

.vps-methodology-inner {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-top: 4px solid #0070f3;
  border-radius: 12px;
  padding: 30px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.methodology-header {
  margin-bottom: 24px;
}

.methodology-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px #10b981;
}

.methodology-title {
  font-size: 24px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin: 4px 0 10px;
  line-height: 1.3;
}

.methodology-intro {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  max-width: 1080px;
  margin: 0;
}

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.methodology-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s, box-shadow 0.2s;
}

.methodology-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.methodology-card-num {
  font-size: 28px;
  font-weight: 900;
  color: #e2e8f0;
  line-height: 1;
  position: absolute;
  top: 14px;
  right: 16px;
}

.methodology-card-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.methodology-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.3;
}

.methodology-metric-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #0070f3;
  background: #eff6ff;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.methodology-card-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 14px;
  flex-grow: 1;
}

.methodology-tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

.methodology-tool-tags span {
  font-size: 10px;
  font-weight: 700;
  background: #f1f5f9;
  color: #334155;
  padding: 2px 6px;
  border-radius: 3px;
}

.methodology-pipeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f172a;
  border-radius: 8px;
  padding: 16px 24px;
  margin-top: 24px;
  color: #ffffff;
  gap: 12px;
  flex-wrap: wrap;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 200px;
}

.step-num {
  font-size: 10px;
  font-weight: 800;
  color: #e60067;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.step-text {
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.4;
}

.pipeline-arrow {
  color: #38bdf8;
  font-size: 16px;
  font-weight: 800;
}

@media (max-width: 1024px) {
  .methodology-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .methodology-grid {
    grid-template-columns: 1fr;
  }
  .pipeline-arrow {
    display: none;
  }
}

/* ========================================================
   VPS HOSTING SIDEBAR SPECIFIC STYLES
   ======================================================== */
.vps-sidebar-widget {
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid var(--tr-border-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.vps-sidebar-title {
  font-size: 16px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e60067;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
  font-size: 12px;
  transition: background 0.2s, border-color 0.2s;
}

.leaderboard-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.leaderboard-rank {
  font-weight: 800;
  font-size: 11px;
  color: #e60067;
  width: 22px;
}

.leaderboard-name {
  font-weight: 800;
  color: #0f172a;
  text-decoration: none;
}

.leaderboard-specs {
  font-size: 10px;
  color: #64748b;
  display: block;
}

.leaderboard-score {
  font-weight: 800;
  color: #16a34a;
  background: #dcfce7;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

/* Terminal Recipe Snippet in Sidebar */
.terminal-snippet {
  background: #0f172a;
  color: #38bdf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  padding: 10px 12px;
  border-radius: 6px;
  position: relative;
  word-break: break-all;
  margin-top: 6px;
  border: 1px solid #1e293b;
}

.copy-snippet-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: none;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 6px;
  cursor: pointer;
  float: right;
  margin-left: 6px;
}

.copy-snippet-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Telemetry Node Indicators */
.telemetry-node-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
}


