/* ========================================
   TechNewsSkills - Static CSS Export
   ======================================== */

/* CSS Variables */
:root {
  --background: 222 47% 6%;
  --foreground: 210 40% 98%;
  --card: 222 47% 8%;
  --card-foreground: 210 40% 98%;
  --primary: 187 100% 50%;
  --primary-foreground: 222 47% 6%;
  --secondary: 217 33% 12%;
  --secondary-foreground: 210 40% 98%;
  --muted: 217 33% 15%;
  --muted-foreground: 215 20% 55%;
  --accent: 280 100% 65%;
  --border: 217 33% 15%;
  --ring: 187 100% 50%;
  
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  
  --shadow-glow: 0 0 40px hsla(187, 100%, 50%, 0.15);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  min-height: 100vh;
}

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

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

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* ===============================
   WORDPRESS NAV FIX
================================ */

/* Desktop nav visibility */
.nav-desktop {
  display: none;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
  }
}

/* WordPress menu ul */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Menu item */
.nav-menu > li {
  position: relative;
}

/* Menu link (match .nav-link design) */
.nav-menu > li > a {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  border-radius: 0.5rem;
  transition: all 0.2s;
  display: block;
}

/* Hover + active */
.nav-menu > li > a:hover,
.current-menu-item > a,
.current-menu-parent > a {
  color: hsl(var(--foreground));
  background: hsl(var(--secondary));
}

/* ===============================
   DROPDOWN (SUB-CATEGORIES)
================================ */
.nav-menu li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  min-width: 220px;
  padding: 0.5rem 0;
  border-radius: 0.75rem;
  z-index: 999;
}

/* Show dropdown */
.nav-menu li:hover > ul {
  display: block;
}

/* Dropdown links */
.nav-menu li ul li a {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  white-space: nowrap;
}

.nav-menu li ul li a:hover {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  background: hsl(187 100% 45%);
  box-shadow: 0 0 20px hsla(187, 100%, 50%, 0.4);
}

.btn-hero {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(280 100% 65%));
  color: white;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.btn-hero:hover {
  box-shadow: 0 0 30px hsla(187, 100%, 50%, 0.5);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.btn-outline:hover {
  background: hsl(var(--secondary));
  border-color: hsl(var(--primary));
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

/* ========================================
   Badges
   ======================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-radius: 9999px;
}

.badge-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
}

.badge-glow {
  background: hsla(var(--primary), 0.1);
  color: hsl(var(--primary));
  border: 1px solid hsla(var(--primary), 0.3);
}

.badge-glow .pulse {
  width: 0.5rem;
  height: 0.5rem;
  background: hsl(var(--primary));
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, hsla(187, 100%, 50%, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, hsla(280, 100%, 65%, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 900px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 1.5rem 0;
}

.text-gradient {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid hsl(var(--border));
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

.stat-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.stat-divider {
  width: 1px;
  height: 2.5rem;
  background: hsl(var(--border));
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 0 7rem;
  }
  
  .hero-stats {
    gap: 2.5rem;
  }
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: hsla(var(--secondary), 0.3);
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-header-center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-badge {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary));
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
}

@media (min-width: 1024px) {
  .section {
    padding: 5rem 0;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
}

/* ========================================
   Featured Card
   ======================================== */
.featured-card {
  position: relative;
  display: block;
  border-radius: 1rem;
  overflow: hidden;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  margin-bottom: 2rem;
  transition: all 0.3s;
}

.featured-card:hover {
  border-color: hsla(var(--primary), 0.5);
  box-shadow: var(--shadow-glow);
}

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

.featured-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(var(--background)) 0%, hsla(var(--background), 0.5) 50%, transparent 100%);
}

.featured-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.featured-meta svg {
  color: hsl(var(--primary));
}

.featured-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.featured-card:hover .featured-title {
  color: hsl(var(--primary));
}

.featured-excerpt {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.featured-footer .author,
.featured-footer .read-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .featured-content {
    padding: 2rem;
  }
  
  .featured-title {
    font-size: 1.875rem;
  }
}

/* ========================================
   News Grid & Cards
   ======================================== */
.news-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-card {
  display: flex;
  flex-direction: column;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s;
}

.news-card:hover {
  border-color: hsla(var(--primary), 0.5);
}

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

.news-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.news-content {
  flex: 1;
  padding: 1.25rem;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.news-meta svg {
  color: hsl(var(--muted-foreground));
}

.news-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.news-card:hover .news-title {
  color: hsl(var(--primary));
}

.news-excerpt {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.news-footer .read-time {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary));
  transition: gap 0.2s;
}

.news-card:hover .read-more {
  gap: 0.75rem;
}
/* ========================================
   CATEGORY POSTS GRID – FIXED & STABLE
======================================== */

.category-page {
  padding: 4rem 0;
}

/* Header */
.category-header {
  max-width: 720px;
  margin-bottom: 3rem;
}

.category-title {
  font-size: 2.5rem;
  font-weight: 700;
}

.category-description {
  color: hsl(var(--muted-foreground));
}

/* Grid – responsive & locked */
.posts-grid {
  display: grid;
  gap: 2rem;
  align-items: stretch;
}

/* Mobile */
@media (max-width: 639px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet */
@media (min-width: 640px) and (max-width: 1023px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card */
.post-card {
  background: hsl(var(--card));
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

/* Image */
.post-image {
  display: block;
  width: 100%;
}

.post-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Content */
.post-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

/* Badge */
.post-badge {
  align-self: flex-start;
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

/* Title */
.post-title {
  font-size: 1.05rem;
  line-height: 1.4;
}

.post-title a {
  color: hsl(var(--foreground));
}

/* Excerpt */
.post-excerpt {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
}

/* Meta */
.post-meta {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

/* Read more */
.read-more {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: hsl(var(--primary));
}

/* ========================================
   Reviews Grid
   ======================================== */
.reviews-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s;
}

.review-card:hover {
  border-color: hsla(var(--primary), 0.5);
  transform: translateY(-4px);
}

.review-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--accent)));
  color: white;
  border-radius: 0.25rem;
}

.review-image {
  aspect-ratio: 4 / 3;
  background: hsl(var(--secondary));
  overflow: hidden;
}

.review-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.review-content {
  flex: 1;
  padding: 1rem;
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.review-brand {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.review-rating .stars {
  color: #fbbf24;
  font-size: 0.75rem;
}

.review-rating .rating-value {
  font-size: 0.75rem;
  font-weight: 600;
}

.review-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.review-verdict {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.review-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: hsl(var(--primary));
}

.review-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--primary));
}

/* ========================================
   Newsletter Section
   ======================================== */
.newsletter-section {
  padding: 4rem 0;
}

.newsletter-card {
  position: relative;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, hsla(var(--primary), 0.1), hsla(var(--accent), 0.1));
  border: 1px solid hsla(var(--primary), 0.2);
  border-radius: 1.5rem;
  overflow: hidden;
}

.newsletter-content {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin: 1rem 0;
}

.newsletter-text {
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 28rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .newsletter-form {
    flex-direction: row;
  }
}

.newsletter-input-group {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
}

.newsletter-input-group svg {
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
}

.newsletter-input-group input {
  flex: 1;
  padding: 0.75rem 0;
  background: transparent;
  border: none;
  color: hsl(var(--foreground));
  font-size: 0.9375rem;
  outline: none;
}

.newsletter-input-group input::placeholder {
  color: hsl(var(--muted-foreground));
}

.newsletter-disclaimer {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-top: 1rem;
}

.newsletter-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, hsla(var(--primary), 0.3) 0%, transparent 70%);
}

.decoration-circle-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -50px;
}

.decoration-circle-2 {
  width: 200px;
  height: 200px;
  bottom: -100px;
  left: -50px;
  background: radial-gradient(circle, hsla(var(--accent), 0.2) 0%, transparent 70%);
}

@media (min-width: 1024px) {
  .newsletter-card {
    padding: 4rem;
  }
  
  .newsletter-title {
    font-size: 2.5rem;
  }
}

/* ========================================
   Footer
   ======================================== */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid hsl(var(--border));
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 0.5rem;
}

.social-link {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--secondary));
  border-radius: 0.5rem;
  color: hsl(var(--muted-foreground));
  transition: all 0.2s;
}

.social-link:hover {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid hsl(var(--border));
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a:hover {
  color: hsl(var(--foreground));
}

/* ========================================
   Utilities
   ======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* =====================================================
   TECHNEWSKILLS – HARD RESET CONTENT VISIBILITY FIX
   THIS FIXES:
   - paragraphs not visible
   - author name missing
   - comments broken
   - posts not appearing
   ===================================================== */

/* -------------------------------------------------
   1️⃣ REMOVE ALL OVERLAYS GLOBALLY
------------------------------------------------- */
body::before,
body::after,
main::before,
main::after,
section::before,
section::after,
.hero::before,
.hero::after,
.overlay,
[class*="overlay"] {
  display: none !important;
  content: none !important;
}

/* -------------------------------------------------
   2️⃣ FORCE CONTENT ABOVE EVERYTHING
------------------------------------------------- */
.site-main,
.site-content,
.content-area,
article,
.entry-content,
.wp-block-post-content,
.comment-body,
.author-box {
  position: relative !important;
  z-index: 999 !important;
  opacity: 1 !important;
  filter: none !important;
}

/* -------------------------------------------------
   3️⃣ GLOBAL TEXT VISIBILITY (NO FADE)
------------------------------------------------- */
p,
li,
span,
div,
small,
strong,
em {
  color: #e5e7eb !important;
  opacity: 1 !important;
  filter: none !important;
}

/* -------------------------------------------------
   4️⃣ HEADINGS (ALWAYS VISIBLE)
------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: #f8fafc !important;
  opacity: 1 !important;
}

/* -------------------------------------------------
   5️⃣ POST CONTENT BACKGROUND (READABLE)
------------------------------------------------- */
.single-post article,
.page article {
  background: rgba(2,6,23,0.96) !important;
  padding: 28px !important;
  border-radius: 16px;
}

/* -------------------------------------------------
   6️⃣ POST TITLES (SHOW THEM)
------------------------------------------------- */
.single-post .entry-title,
.wp-block-post-title {
  display: block !important;
  color: #ffffff !important;
  font-size: 2.2rem !important;
}

/* -------------------------------------------------
   7️⃣ CARD FIX (HOME + ARCHIVE POSTS)
------------------------------------------------- */
.news-card,
.post-card,
.card {
  background: #020617 !important;
  opacity: 1 !important;
}

.news-card *,
.post-card * {
  color: #e5e7eb !important;
  opacity: 1 !important;
}

/* -------------------------------------------------
   8️⃣ AUTHOR BOX FIX
------------------------------------------------- */
.author-box,
.author-bio {
  background: #ffffff !important;
  color: #111827 !important;
}

.author-box *,
.author-bio * {
  color: #111827 !important;
  opacity: 1 !important;
}

/* -------------------------------------------------
   9️⃣ COMMENTS FIX (NAME + TEXT)
------------------------------------------------- */
.comment-body,
.wp-block-comment {
  background: #ffffff !important;
  color: #111827 !important;
}

.comment-author,
.comment-author a {
  color: #111827 !important;
  font-weight: 600;
}

.comment-content p {
  color: #1f2937 !important;
  opacity: 1 !important;
}

/* -------------------------------------------------
   🔟 LINKS
------------------------------------------------- */
a {
  color: #38bdf8 !important;
}

a:hover {
  color: #7dd3fc !important;
}

/* -------------------------------------------------
   1️⃣1️⃣ READ MORE / LOAD MORE
------------------------------------------------- */
.read-more,
.wp-block-query-pagination-next {
  background: #22c55e !important;
  color: #022c22 !important;
}

/* -------------------------------------------------
   1️⃣2️⃣ PREVENT CONTENT CUT-OFF
------------------------------------------------- */
.site-main,
.site-content,
.wp-site-blocks {
  overflow: visible !important;
}
/* ===============================
   HEADER LAYOUT FIX (IMPORTANT)
================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsla(var(--background), 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}

.header-inner {
  display: flex;
  align-items: center;
  height: 4rem;
}

/* Logo stays left */
.logo {
  flex-shrink: 0;
}

/* Menu stays center */
.nav-desktop {
  flex: 1;
  display: none;
  justify-content: center;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

/* Subscribe stays right */
.header-actions {
  flex-shrink: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
}
/* ===============================
   LOGO FIX (HEADER & FOOTER)
================================ */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1;
}

/* Logo Icon Box */
.logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    hsl(var(--primary)),
    hsl(var(--accent))
  );
  box-shadow: var(--shadow-glow);
}

/* SVG inside icon */
.logo-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

/* Logo text */
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
  white-space: nowrap;
  color: hsl(var(--foreground));
}
/* ===============================
   ARTICLE SYMBOL & CODE FIX
================================ */

/* Inline code like < > */
.entry-content code,
.entry-content kbd,
.entry-content samp {
  background: hsl(var(--secondary));
  color: hsl(var(--primary));
  padding: 0.15rem 0.35rem;
  border-radius: 0.3rem;
  font-family: monospace;
  font-size: 0.9em;
}

/* Code blocks */
.entry-content pre {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  padding: 1rem;
  border-radius: 0.75rem;
  overflow-x: auto;
  border: 1px solid hsl(var(--border));
}

.entry-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}
/* =====================================================
   MOBILE MENU PANEL (DARK THEME)
   ===================================================== */

.mobile-nav {
  position: fixed;
  top: 64px; /* below header */
  left: 0;
  width: 100%;
  height: calc(100vh - 64px);
  background: #020617;
  display: none;
  flex-direction: column;
  padding: 1.5rem;
  z-index: 9998;
}

.mobile-nav a {
  color: #e5e7eb;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid #1e293b;
}

.mobile-nav a:hover {
  color: #38bdf8;
}

/* Show menu when active */
.mobile-nav.active {
  display: flex;
}
/* =====================================================
   MOBILE MENU PANEL (DARK THEME)
   ===================================================== */

.mobile-nav {
  position: fixed;
  top: 64px; /* below header */
  left: 0;
  width: 100%;
  height: calc(100vh - 64px);
  background: #020617;
  display: none;
  flex-direction: column;
  padding: 1.5rem;
  z-index: 9998;
}

.mobile-nav a {
  color: #e5e7eb;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid #1e293b;
}

.mobile-nav a:hover {
  color: #38bdf8;
}

/* Show menu when active */
.mobile-nav.active {
  display: flex;
}
/* =====================================================
   MEGA MENU – DESKTOP (2 COLUMN)
===================================================== */

.nav-menu > li.menu-item-has-children {
  position: relative;
}

/* Mega dropdown container */
.nav-menu > li.menu-item-has-children > .sub-menu {
  position: absolute;
  top: 120%;
  left: 0;

  width: 420px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;

  background: #020617;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;

  padding: 12px;
  list-style: none;

  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;

  z-index: 9999;
}

/* Show on hover */
.nav-menu > li.menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mega menu items */
.nav-menu .sub-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px;
  border-radius: 10px;

  font-size: 14px;
  font-weight: 600;
  color: #e5e7eb;
}

/* Hover effect */
.nav-menu .sub-menu li a:hover {
  background: rgba(56,189,248,0.15);
  color: #38bdf8;
}

/* Arrow on parent */
.menu-item-has-children > a::after {
  content: "▾";
  font-size: 12px;
  margin-left: 6px;
  opacity: 0.7;
}
/* =====================================================
   FINAL HARD FIX – WHITE ARTICLE SECTIONS
   (CONTENT COLOR NORMALIZATION)
   ===================================================== */

/* 1️⃣ Normalize article containers */
article,
.single-post article,
.entry-content,
.wp-block-post-content,
.post-content {
  background: transparent !important;
  color: #e5e7eb !important;
}

/* 2️⃣ Fix Gutenberg blocks forcing white background */
.wp-block-group,
.wp-block-cover,
.wp-block-media-text,
.wp-block-columns,
.wp-block-column {
  background: transparent !important;
  color: #e5e7eb !important;
}

/* 3️⃣ Paragraphs – FINAL OVERRIDE */
.entry-content p,
.wp-block-paragraph,
article p {
  color: #e5e7eb !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* 4️⃣ Headings stay visible */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: #f8fafc !important;
}

/* 5️⃣ Lists */
.entry-content li {
  color: #e5e7eb !important;
}

/* 6️⃣ Fix captions & image blocks */
.wp-block-image figcaption,
.wp-block-embed figcaption {
  color: #cbd5f5 !important;
}

/* 7️⃣ Fix code blocks */
pre,
code {
  background: #020617 !important;
  color: #f8fafc !important;
}

/* 8️⃣ Prevent wpDiscuz / plugin overrides */
.wpdiscuz-comment-message,
.wpdiscuz-comment-text,
.wpdiscuz-content * {
  color: #1f2937 !important;
}

/* 9️⃣ Emergency fallback (last resort) */
article * {
  mix-blend-mode: normal !important;
  filter: none !important;
}
/* =====================================================
   TECHNEWSKILLS – FINAL SAFE NORMALIZATION PATCH
   DO NOT REMOVE EXISTING CSS
   ADD THIS AT THE VERY END
   ===================================================== */


/* =====================================================
   1️⃣ ARTICLE CONTENT – FINAL VISIBILITY FIX
===================================================== */

/* Core article containers */
.single-post article,
.page article,
.entry-content,
.wp-block-post-content {
  background: transparent !important;
  color: hsl(var(--foreground)) !important;
  opacity: 1 !important;
}

/* Paragraphs */
.entry-content p,
.wp-block-paragraph,
article p {
  color: hsl(var(--foreground)) !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  font-size: 1.05rem;
  line-height: 1.9;
}

/* Lists */
.entry-content li,
.entry-content li p {
  color: hsl(var(--foreground)) !important;
  opacity: 1 !important;
}

/* Headings */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: hsl(var(--foreground)) !important;
  opacity: 1 !important;
}

/* Gutenberg blocks forcing white */
.wp-block-group,
.wp-block-cover,
.wp-block-media-text,
.wp-block-columns,
.wp-block-column {
  background: transparent !important;
  color: hsl(var(--foreground)) !important;
}

/* Captions */
.wp-block-image figcaption,
.wp-block-embed figcaption {
  color: hsl(var(--muted-foreground)) !important;
}


/* =====================================================
   2️⃣ PREVENT INVISIBLE CONTENT / OVERLAYS
===================================================== */

body::before,
body::after,
main::before,
main::after,
section::before,
section::after,
.hero::before,
.hero::after,
[class*="overlay"] {
  display: none !important;
  content: none !important;
}


/* =====================================================
   3️⃣ MOBILE HEADER – VISIBILITY FIX
===================================================== */

@media (max-width: 1023px) {

  .header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: hsl(var(--background));
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Logo always visible */
  .logo {
    display: inline-flex !important;
    align-items: center;
    z-index: 10000;
  }

  /* Hide desktop nav on mobile */
  .nav-desktop {
    display: none !important;
  }

  /* Mobile menu button */
  .mobile-menu-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: transparent;
    color: hsl(var(--foreground));
    border: none;
    cursor: pointer;
    z-index: 10000;
  }
}


/* =====================================================
   4️⃣ MOBILE MENU – CLICK & OVERLAY FIX
===================================================== */

.nav-mobile {
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  height: calc(100vh - 64px);
  background: hsl(var(--background));
  display: none;
  flex-direction: column;
  padding: 1.25rem;
  overflow-y: auto;
  z-index: 9998;
}

.nav-mobile.active {
  display: flex;
}

.nav-mobile a {
  color: hsl(var(--foreground));
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid hsl(var(--border));
}


/* =====================================================
   5️⃣ MEGA MENU – MOBILE SAFETY
===================================================== */

@media (max-width: 1023px) {
  .nav-menu > li.menu-item-has-children > .sub-menu {
    position: static !important;
    width: 100% !important;
    display: none;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    grid-template-columns: 1fr !important;
  }

  .nav-menu > li.menu-item-has-children.open > .sub-menu {
    display: grid;
  }
}


/* =====================================================
   6️⃣ POSTS GRID – ENSURE NOT HIDDEN
===================================================== */

.posts-grid,
.news-grid,
.review-grid {
  opacity: 1 !important;
  visibility: visible !important;
}


/* =====================================================
   7️⃣ SAFETY FALLBACK (LIMITED SCOPE)
===================================================== */

.single-post article * {
  mix-blend-mode: normal !important;
  filter: none !important;
}
/* =====================================================
   WP TABLE – FINAL DARK MODE FIX
   Affects ONLY tables (safe for whole site)
   ===================================================== */

/* 1️⃣ Table wrapper (Gutenberg + plugins) */
.entry-content .wp-block-table,
.entry-content .wp-table,
.entry-content table {
  background: transparent !important;
  color: #e5e7eb !important;
  overflow-x: auto;
}

/* 2️⃣ Core table reset */
.entry-content table,
.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  background-color: transparent !important;
}

/* 3️⃣ Table Head */
.entry-content th,
.wp-block-table th {
  background-color: #020617 !important;
  color: #f8fafc !important;
  font-weight: 600;
  padding: 14px;
  border: 1px solid #1e293b !important;
  text-align: left;
}

/* 4️⃣ Table Cells */
.entry-content td,
.wp-block-table td {
  background-color: #020617 !important;
  color: #e5e7eb !important;
  padding: 14px;
  border: 1px solid #1e293b !important;
  vertical-align: middle;
}

/* 5️⃣ Remove plugin inline white backgrounds */
.entry-content td[style],
.entry-content th[style],
.entry-content tr[style] {
  background-color: #020617 !important;
  color: #e5e7eb !important;
}

/* 6️⃣ Alternate rows (keep dark) */
.entry-content tr:nth-child(even) td {
  background-color: #020617 !important;
}

/* 7️⃣ Text inside tables */
.entry-content table p,
.entry-content table span,
.entry-content table strong,
.entry-content table small {
  color: #e5e7eb !important;
  opacity: 1 !important;
}

/* 8️⃣ Links & buttons inside tables */
.entry-content table a,
.entry-content table a:visited {
  color: #38bdf8 !important;
}

.entry-content table a.btn,
.entry-content table .btn {
  background: #2563eb !important;
  color: #ffffff !important;
}

/* 9️⃣ Ratings / icons */
.entry-content table svg,
.entry-content table .star,
.entry-content table .rating {
  color: #facc15 !important;
  fill: #facc15 !important;
}

/* 🔟 Price highlight */
.entry-content table .price,
.entry-content table td.price {
  color: #22c55e !important;
  font-weight: 600;
}

/* 1️⃣1️⃣ Prevent white block containers */
.wp-block-table,
.wp-block-table figure {
  background: transparent !important;
}

/* 1️⃣2️⃣ Mobile safety */
@media (max-width: 768px) {
  .entry-content .wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ===============================
   MOBILE SUBMENU FIX (ONLY MOBILE)
================================ */

@media (max-width: 1023px) {

  /* Mobile menu container */
  #mobileMenu {
    display: none;
    flex-direction: column;
  }

  #mobileMenu.active {
    display: block;
  }

  /* Hide submenus by default */
  #mobileMenu .sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    opacity: 0;
    padding-left: 1rem;
  }

  /* Show submenu when opened */
  #mobileMenu .menu-item-has-children.open > .sub-menu {
    max-height: 500px;
    opacity: 1;
  }

  /* Parent menu item */
  #mobileMenu .menu-item-has-children > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Arrow indicator */
  #mobileMenu .menu-item-has-children > a::after {
    content: "▾";
    font-size: 14px;
    transition: transform 0.3s ease;
  }

  #mobileMenu .menu-item-has-children.open > a::after {
    transform: rotate(180deg);
  }
}
/* =====================================================
   CATEGORY TITLE OVER HEADER FIX
   Prevents title sliding under sticky header
   ===================================================== */

/* Height of your header (adjust if needed) */
:root {
  --header-height: 64px;
}

/* 1️⃣ Ensure header is always on top */
.header {
  position: sticky;
  top: 0;
  z-index: 99999 !important;
}

/* 2️⃣ Push category & archive content below header */
.category .site-main,
.archive .site-main,
.category-page,
.archive-page {
  padding-top: var(--header-height);
}

/* 3️⃣ Fix category header/title block */
.category-header,
.archive-header {
  position: relative !important;
  z-index: 1 !important;
  margin-top: 0 !important;
  padding-top: 1.5rem;
}

/* 4️⃣ Category title text safety */
.category-title,
.archive-title,
.wp-block-query-title {
  position: relative;
  z-index: 1;
  margin-top: 0 !important;
}

/* 5️⃣ Mobile-specific hard fix */
@media (max-width: 768px) {
  .category-header,
  .archive-header {
    padding-top: 2rem;
  }
}

/* 6️⃣ Absolute last-resort protection */
.category-header *,
.archive-header * {
  mix-blend-mode: normal !important;
}
