/*
Theme Name: Themify Ultra Child - NetworkUstad
Description: Child theme for NetworkUstad tech blog design
Template: themify-ultra
Version: 1.0
*/

/* Import parent theme styles */
@import url("../themify-ultra/style.css");

/* CRITICAL: Force full-width responsive overrides */
* {
  box-sizing: border-box !important;
}

html,
body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  overflow-x: hidden !important;
}

/* Override ALL Themify container constraints */
.themify_builder_content,
.main-content,
.content-wrapper,
.page-wrapper,
#layout,
#body,
.body,
.site-content,
.entry-content,
.pagewidth,
.tf_box,
.fullwidth {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Custom container for proper content spacing */
.container {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 1rem !important;
}

/* Override Themify's container restrictions */
.pagewidth {
  width: 100% !important;
  max-width: 100% !important;
}

/* Ensure full width for our sections with stronger overrides */
.hero-section,
.featured-articles,
.quiz-sections,
.editors-picks,
.content-section,
.newsletter-section {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  padding: 4rem 0 !important;
  position: relative !important;
  box-sizing: border-box !important;
}

/* Mobile responsive grid fixes */
.grid {
  display: grid !important;
  width: 100% !important;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 2rem !important;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2rem !important;
}

/* NetworkUstad Custom Styles */
:root {
  --background: hsl(0, 0%, 98%);
  --foreground: hsl(0, 0%, 20%);
  --muted: hsl(0, 0%, 96%);
  --muted-foreground: hsl(0, 0%, 45%);
  --popover: hsl(0, 0%, 100%);
  --popover-foreground: hsl(0, 0%, 20%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(0, 0%, 20%);
  --border: hsl(0, 0%, 90%);
  --input: hsl(0, 0%, 90%);
  --primary: hsl(207, 90%, 54%);
  --primary-foreground: hsl(0, 0%, 98%);
  --secondary: hsl(0, 0%, 26%);
  --secondary-foreground: hsl(0, 0%, 98%);
  --accent: hsl(20, 100%, 60%);
  --accent-foreground: hsl(0, 0%, 98%);
  --destructive: hsl(0, 84%, 60%);
  --destructive-foreground: hsl(0, 0%, 98%);
  --ring: hsl(207, 90%, 54%);
  --radius: 0.5rem;
  --success: hsl(122, 39%, 49%);
  --success-foreground: hsl(0, 0%, 98%);
}

.dark {
  --background: hsl(240, 10%, 4%);
  --foreground: hsl(0, 0%, 98%);
  --muted: hsl(240, 4%, 16%);
  --muted-foreground: hsl(240, 5%, 65%);
  --popover: hsl(240, 10%, 4%);
  --popover-foreground: hsl(0, 0%, 98%);
  --card: hsl(240, 10%, 4%);
  --card-foreground: hsl(0, 0%, 98%);
  --border: hsl(240, 4%, 16%);
  --input: hsl(240, 4%, 16%);
  --primary: hsl(207, 90%, 54%);
  --primary-foreground: hsl(0, 0%, 98%);
  --secondary: hsl(240, 4%, 16%);
  --secondary-foreground: hsl(0, 0%, 98%);
  --accent: hsl(20, 100%, 60%);
  --accent-foreground: hsl(0, 0%, 98%);
  --destructive: hsl(0, 63%, 31%);
  --destructive-foreground: hsl(0, 0%, 98%);
  --ring: hsl(240, 5%, 84%);
  --radius: 0.5rem;
  --success: hsl(122, 39%, 49%);
  --success-foreground: hsl(0, 0%, 98%);
}

/* Base styles */
body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

/* Utility classes */
.gradient-primary {
  background: linear-gradient(135deg, hsl(207, 90%, 54%) 0%, hsl(212, 100%, 45%) 100%);
}

.gradient-accent {
  background: linear-gradient(135deg, hsl(20, 100%, 60%) 0%, hsl(24, 100%, 50%) 100%);
}

.card-hover {
  transition: box-shadow 0.3s ease;
}

.card-hover:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.text-gradient {
  background: linear-gradient(135deg, hsl(207, 90%, 54%) 0%, hsl(212, 100%, 45%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header customizations */
.site-header {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar {
  background: rgba(15, 23, 42, 0.95);
  color: white;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-text {
  margin-right: 2rem;
  color: rgba(255, 255, 255, 0.8);
}

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

.social-link {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

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

.site-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.main-navigation a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: var(--primary);
}

.site-logo {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Mega Menu Styles */
.mega-menu {
  position: relative;
}

.mega-menu-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 2rem;
  min-width: 600px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.mega-menu:hover .mega-menu-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.mega-menu-column h3 {
  color: var(--foreground);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
}

.mega-menu-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-menu-column li {
  margin-bottom: 0.5rem;
}

.mega-menu-column a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.mega-menu-column a:hover {
  color: var(--primary);
}

/* Hero section */
.hero-section {
  background: linear-gradient(135deg, hsl(207, 90%, 54%) 0%, hsl(212, 100%, 45%) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-section p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: hsl(20, 100%, 50%);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid white;
  color: white;
  background: transparent;
}

.btn-outline:hover {
  background: white;
  color: var(--primary);
}

/* Content sections */
.content-section {
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--foreground);
}

.section-subtitle {
  font-size: 1.125rem;
  text-align: center;
  color: var(--muted-foreground);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Card components */
.card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

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

.card-excerpt {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.category-badge {
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.category-badge.cybersecurity {
  background: #ef4444;
}

.category-badge.networking {
  background: #3b82f6;
}

.category-badge.ccna {
  background: #10b981;
}

.category-badge.technology {
  background: #8b5cf6;
}

.category-badge.business {
  background: #f59e0b;
}

/* Grid layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-1 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Quiz section */
.quiz-section {
  background: #f8fafc;
  padding: 4rem 0;
}

.quiz-card {
  background: white;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quiz-card.daily {
  border-left: 4px solid var(--primary);
}

.quiz-card.weekly {
  background: var(--accent);
  color: white;
}

.quiz-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.quiz-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: white;
}

.quiz-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.quiz-description {
  color: var(--muted-foreground);
  margin: 0;
}

.quiz-card.weekly .quiz-description {
  color: rgba(255, 255, 255, 0.8);
}

/* Newsletter section */
.newsletter-section {
  background: var(--gradient-primary);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.newsletter-form {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
}

.newsletter-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.newsletter-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter-btn:hover {
  background: hsl(20, 100%, 50%);
}

/* Footer */
.site-footer {
  background: var(--secondary);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: white;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #475569;
  padding-top: 2rem;
  text-align: center;
  color: #94a3b8;
}

/* Header Styles */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top-bar {
  background: var(--primary);
  color: white;
  padding: 0.5rem 0;
  font-size: 0.875rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

.social-link {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.social-link:hover {
  opacity: 1;
}

.header-main {
  padding: 1rem 0;
}

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

.site-branding h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
}

.site-tagline {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.main-navigation .nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-menu .menu-item {
  position: relative;
}

.nav-menu a {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary);
}

.dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  padding: 1rem 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-btn,
.menu-toggle {
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 3px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--foreground);
  transition: all 0.3s ease;
}

.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-container {
  position: relative;
  width: 90%;
  max-width: 600px;
}

.search-input {
  width: 100%;
  padding: 1.5rem 2rem;
  font-size: 1.5rem;
  border: none;
  border-radius: 0.5rem;
  background: white;
}

.search-close {
  position: absolute;
  top: -60px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
}

/* Improved Quiz Section Styles */
.quiz-sections {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 4rem 0;
}

.quiz-header {
  text-align: center;
  margin-bottom: 3rem;
}

.quiz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.quiz-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.quiz-card:hover {
  transform: translateY(-5px);
}

.quiz-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.quiz-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.daily-icon {
  background: var(--primary);
}

.weekly-icon {
  background: var(--accent);
}

.quiz-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.quiz-subtitle {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.current-quiz-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.quiz-topic {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1rem;
}

.quiz-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.stat-value {
  font-weight: 600;
  color: var(--primary);
}

.competition-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.leaderboard-preview {
  margin-bottom: 1.5rem;
}

.leaderboard-preview h6 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.leaderboard-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.leader-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background: #f8fafc;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.quiz-unavailable {
  text-align: center;
  padding: 2rem;
}

.quiz-placeholder {
  margin-top: 1rem;
}

.placeholder-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.quiz-categories {
  text-align: center;
}

.quiz-categories h3 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  color: var(--foreground);
}

.category-pills {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.category-pill {
  background: white;
  color: var(--foreground);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.category-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.category-pill.cybersecurity:hover {
  background: var(--primary);
  color: white;
}

.category-pill.networking:hover {
  background: var(--accent);
  color: white;
}

/* Single Post Styles */
.single-post-main {
  background: white;
}

.post-header {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 3rem 0 2rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.published-date,
.read-time {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.post-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--foreground);
}

.post-author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar img {
  border-radius: 50%;
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  color: var(--foreground);
}

.author-title {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.post-featured-image {
  margin: 2rem 0;
}

.featured-img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.post-content-wrapper {
  padding: 3rem 0;
}

.post-layout {
  display: flex;
  gap: 3rem;
}

.post-content {
  flex: 2;
}

.post-sidebar {
  flex: 1;
  min-width: 300px;
}

.content-body {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4,
.content-body h5,
.content-body h6 {
  margin: 2rem 0 1rem;
  color: var(--foreground);
  font-weight: 600;
}

.content-body p {
  margin-bottom: 1.5rem;
}

.content-body ul,
.content-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.content-body li {
  margin-bottom: 0.5rem;
}

.content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

.content-body code {
  background: #f1f5f9;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
}

.content-body pre {
  background: #1e293b;
  color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.content-body blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--muted-foreground);
}

.post-tags {
  margin-bottom: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.post-tags h4 {
  margin-bottom: 1rem;
  font-size: 1.125rem;
  color: var(--foreground);
}

.tag-list a {
  display: inline-block;
  background: #f1f5f9;
  color: var(--foreground);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.875rem;
  margin: 0 0.5rem 0.5rem 0;
  transition: all 0.3s ease;
}

.tag-list a:hover {
  background: var(--primary);
  color: white;
}

.social-sharing {
  padding: 2rem 0;
  border-top: 1px solid #e2e8f0;
}

.social-sharing h4 {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  color: var(--foreground);
}

.share-buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  background: white;
  color: var(--foreground);
  font-size: 0.875rem;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.share-btn.twitter:hover {
  background: #1DA1F2;
  color: white;
  border-color: #1DA1F2;
}

.share-btn.facebook:hover {
  background: #4267B2;
  color: white;
  border-color: #4267B2;
}

.share-btn.linkedin:hover {
  background: #0077B5;
  color: white;
  border-color: #0077B5;
}

.share-btn.email:hover {
  background: #34D399;
  color: white;
  border-color: #34D399;
}

.share-btn.copy-link:hover {
  background: #6366F1;
  color: white;
  border-color: #6366F1;
}

/* Sidebar Styles */
.sidebar-widget {
  background: #f8fafc;
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.sidebar-widget h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  margin-bottom: 0.5rem;
}

.toc-link {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.25rem 0;
  display: block;
  transition: color 0.3s ease;
}

.toc-link:hover {
  color: var(--primary);
}

.toc-h1 {
  font-weight: 600;
}

.toc-h2 {
  padding-left: 1rem;
}

.toc-h3 {
  padding-left: 2rem;
}

.author-card {
  text-align: center;
}

.author-avatar-large img {
  border-radius: 50%;
  margin-bottom: 1rem;
}

.author-info h5 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.author-bio-text {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.author-social {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.author-social-link {
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: all 0.3s ease;
}

.author-social-link:hover {
  background: var(--primary);
  color: white;
}

.related-posts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-post-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.related-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.related-post-image {
  flex-shrink: 0;
}

.related-post-image img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.related-post-content h6 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.related-post-content a {
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}

.related-post-content a:hover {
  color: var(--primary);
}

.related-post-date {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.newsletter-widget p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.sidebar-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-newsletter-input {
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.sidebar-newsletter-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.sidebar-newsletter-btn:hover {
  background: color-mix(in srgb, var(--primary) 90%, black);
}

/* CRITICAL FINAL OVERRIDES - Force everything to work */
body * {
  max-width: none !important;
}

/* Override any Themify width constraints */
.tf_w,
.fullwidth,
.tf_box,
.tf_clear,
.themify_builder_content > *,
.module_row,
.row_inner_wrapper,
.builder_row_cover {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Force sections to be full width */
.hero-section,
.featured-articles,
.quiz-sections,
.editors-picks,
.content-section,
.newsletter-section {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Ensure cards display properly */
.card {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Force grid responsiveness */
@media (max-width: 1200px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr !important;
  }
  
  .hero-section .grid-2 {
    grid-template-columns: 1fr !important;
  }
  
  .container {
    padding: 0 1rem !important;
  }
}

/* Limit article display to exactly 6 */
.featured-articles .card:nth-child(n+7),
.editors-picks .card:nth-child(n+7) {
  display: none !important;
}

/* Footer color update to match header */
.site-footer {
  background: rgba(30, 41, 59, 0.98) !important;
}

.footer-bottom {
  background: rgba(15, 23, 42, 0.98) !important;
}

/* Weekly Competition Registration Modal */
.weekly-competition-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.competition-modal-content {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.competition-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary);
}

.competition-header h2 {
  color: var(--primary);
  font-size: 1.5rem;
  margin: 0;
}

.close-modal {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--muted-foreground);
}

.competition-info {
  margin-bottom: 2rem;
}

.competition-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: #f8fafc;
  border-radius: 0.5rem;
}

.meta-item i {
  color: var(--primary);
}

.competition-registration-form {
  display: grid;
  gap: 1rem;
}

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

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.btn-primary:hover {
  background: hsl(207, 90%, 48%);
}

.btn-secondary {
  background: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background: #4b5563;
}

/* Competition Winners Section */
.competition-winners {
  padding: 4rem 0;
  background: #f8fafc;
}

.winners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.winner-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.winner-card:hover {
  transform: translateY(-5px);
}

.winner-card.winner-first {
  border: 2px solid #fbbf24;
}

.winner-rank {
  text-align: center;
  margin-bottom: 1.5rem;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
}

.rank-badge.gold {
  background: #fbbf24;
  color: white;
}

.rank-badge.silver {
  background: #9ca3af;
  color: white;
}

.rank-badge.bronze {
  background: #cd7c2f;
  color: white;
}

.winner-name {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.winner-competition {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.winner-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.stat {
  text-align: center;
  flex: 1;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}

.winner-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.winners-cta {
  text-align: center;
}

/* Enhanced Mobile Performance Styles */
@media (max-width: 768px) {
  /* Reduce font sizes for mobile */
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  /* Optimize modal for mobile */
  .competition-modal-content {
    width: 95%;
    padding: 1.5rem;
  }
  
  .competition-header h2 {
    font-size: 1.25rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .winners-grid {
    grid-template-columns: 1fr;
  }
  
  .winner-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  /* Optimize mega menu for mobile */
  .mega-menu-content {
    min-width: 100vw;
    left: -50vw;
    margin-left: 50%;
  }
  
  .mega-menu-grid {
    grid-template-columns: 1fr;
  }
}

/* Performance optimizations */
.card-image {
  will-change: transform;
  backface-visibility: hidden;
}

.card:hover .card-image {
  transform: translateZ(0);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Footer Styles */
.site-footer {
  background: #1e293b;
  color: white;
}

.footer-main {
  padding: 3rem 0;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-logo h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: white;
}

.footer-tagline {
  color: #94a3b8;
  margin: 0 0 1rem 0;
  font-size: 0.875rem;
}

.footer-description {
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social .social-link {
  width: 40px;
  height: 40px;
  background: #334155;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: background 0.3s ease;
}

.footer-social .social-link:hover {
  background: var(--primary);
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 0.75rem;
}

.footer-menu a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-menu a:hover {
  color: white;
}

.newsletter-description {
  color: #94a3b8;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-newsletter-form {
  margin-bottom: 2rem;
}

.newsletter-input-group {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #475569;
  border-radius: 0.25rem;
  background: #334155;
  color: white;
}

.newsletter-submit {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.25rem;
  font-weight: 500;
  cursor: pointer;
}

.footer-stats {
  display: flex;
  gap: 2rem;
}

.footer-stats .stat-item {
  text-align: center;
}

.footer-stats .stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.footer-stats .stat-label {
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-bottom {
  background: #0f172a;
  padding: 1.5rem 0;
  border-top: 1px solid #334155;
}

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

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-bottom-links a:hover {
  color: white;
}

/* Responsive design */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .container {
    padding: 0 1.5rem !important;
  }
}

@media (max-width: 768px) {
  /* Force full width on mobile with stronger overrides */
  .hero-section,
  .featured-articles,
  .quiz-sections,
  .editors-picks,
  .content-section,
  .newsletter-section {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding: 2rem 0 !important;
  }
  
  .container {
    padding: 0 1rem !important;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  /* Header mobile styles */
  .header-top-bar {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .main-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
  }
  
  .main-navigation.active {
    display: block;
  }
  
  .main-navigation .nav-menu {
    flex-direction: column;
    gap: 0;
  }
  
  .nav-menu .menu-item {
    border-bottom: 1px solid #f1f5f9;
  }
  
  .nav-menu a {
    display: block;
    padding: 1rem 2rem;
  }
  
  /* Quiz section mobile */
  .quiz-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .quiz-card {
    padding: 1.5rem;
  }
  
  .quiz-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .competition-stats {
    grid-template-columns: 1fr;
  }
  
  .category-pills {
    flex-direction: column;
    align-items: center;
  }
  
  .category-pill {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }
  
  /* Footer mobile */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .footer-stats {
    justify-content: center;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .newsletter-input-group {
    flex-direction: column;
  }
  
  /* Single post mobile styles */
  .post-layout {
    flex-direction: column;
  }
  
  .post-sidebar {
    margin-top: 2rem;
  }
  
  .share-buttons {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section p {
    font-size: 1rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .main-navigation ul {
    flex-direction: column;
    gap: 1rem;
  }
  
  .site-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  
  /* Single post mobile styles */
  .article-header {
    padding: 1rem 0 2rem;
  }
  
  .article-meta-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .article-title {
    font-size: 1.75rem;
  }
  
  .article-meta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .article-stats {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .article-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .article-sidebar {
    position: static;
    order: 2;
  }
  
  .share-buttons {
    justify-content: center;
  }
  
  .author-bio-header {
    flex-direction: column;
    text-align: center;
  }
  
  .author-stats {
    justify-content: center;
  }
  
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
  
  .post-navigation {
    grid-template-columns: 1fr;
  }
  
  .newsletter-cta-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .newsletter-cta-text h2 {
    font-size: 2rem;
  }
  
  .form-group {
    flex-direction: column;
  }
}

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

/* Custom WordPress overrides */
.entry-content {
  line-height: 1.8;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--foreground);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.entry-content p {
  margin-bottom: 1.5rem;
}

.entry-content a {
  color: var(--primary);
  text-decoration: none;
}

.entry-content a:hover {
  text-decoration: underline;
}

/* Custom post navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
  padding: 1rem;
  background: var(--muted);
  border-radius: 0.5rem;
}

.post-navigation a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.post-navigation a:hover {
  text-decoration: underline;
}

/* Single Post Styles */
.single-post {
  background: white;
}

.article-header {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 2rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.article-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.breadcrumbs a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  color: var(--muted-foreground);
}

.breadcrumbs .current {
  color: var(--foreground);
  font-weight: 500;
}

.article-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--foreground);
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name a {
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
}

.author-name a:hover {
  color: var(--primary);
}

.author-role {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.article-stats {
  display: flex;
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.stat-icon {
  font-size: 1rem;
}

.reading-progress-container {
  position: sticky;
  top: 0;
  z-index: 100;
  background: white;
  height: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reading-progress {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 0.3s ease;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  margin-top: 3rem;
}

.article-content {
  max-width: none;
}

.featured-image {
  margin-bottom: 2rem;
}

.article-image {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.image-caption {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
}

.article-excerpt {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-left: 4px solid var(--primary);
  border-radius: 0.25rem;
}

.entry-content {
  line-height: 1.8;
  font-size: 1.1rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.entry-content h2 {
  font-size: 2rem;
  font-weight: 700;
}

.entry-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.entry-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

.entry-content p {
  margin-bottom: 1.5rem;
}

.entry-content ul,
.entry-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

.entry-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--muted-foreground);
}

.entry-content pre {
  background: #f4f4f4;
  padding: 1rem;
  border-radius: 0.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.entry-content code {
  background: #f4f4f4;
  padding: 0.2rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
}

.article-tags {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.article-tags h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--foreground);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-list a {
  background: var(--muted);
  color: var(--foreground);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.tag-list a:hover {
  background: var(--primary);
  color: white;
}

/* Social Share Styles */
.social-share {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.social-share h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
  color: var(--foreground);
}

.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  background: white;
  color: var(--foreground);
  cursor: pointer;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-btn.twitter:hover {
  background: #1da1f2;
  color: white;
  border-color: #1da1f2;
}

.share-btn.facebook:hover {
  background: #1877f2;
  color: white;
  border-color: #1877f2;
}

.share-btn.linkedin:hover {
  background: #0077b5;
  color: white;
  border-color: #0077b5;
}

.share-btn.reddit:hover {
  background: #ff4500;
  color: white;
  border-color: #ff4500;
}

.share-btn.copy-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.share-btn.copied {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

/* Author Bio Styles */
.author-bio {
  margin-top: 3rem;
  padding: 2rem;
  background: #f8fafc;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}

.author-bio-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.author-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.author-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-bio .author-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.author-bio .author-name a {
  color: var(--foreground);
  text-decoration: none;
}

.author-bio .author-name a:hover {
  color: var(--primary);
}

.author-bio .author-role {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.author-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 50%;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-link.twitter:hover {
  background: #1da1f2;
  color: white;
}

.social-link.linkedin:hover {
  background: #0077b5;
  color: white;
}

.social-link.website:hover {
  background: var(--primary);
  color: white;
}

.author-bio-content h4 {
  margin-bottom: 1rem;
  color: var(--foreground);
}

.author-bio-content p {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.author-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.author-stats .stat-item {
  text-align: center;
}

.author-stats .stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

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

/* Related Posts Styles */
.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related-posts h3 {
  margin-bottom: 2rem;
  font-size: 1.5rem;
  color: var(--foreground);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.related-post {
  background: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.related-post:hover {
  transform: translateY(-5px);
}

.related-post-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.related-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--muted);
  color: var(--muted-foreground);
  text-decoration: none;
}

.placeholder-icon {
  font-size: 2rem;
}

.related-post-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.related-post-content {
  padding: 1.5rem;
}

.related-post-title {
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.related-post-title a {
  color: var(--foreground);
  text-decoration: none;
}

.related-post-title a:hover {
  color: var(--primary);
}

.related-post-excerpt {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.related-post-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.related-posts-cta {
  text-align: center;
}

/* Sidebar Styles */
.article-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background: white;
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-widget h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-item {
  margin-bottom: 0.5rem;
}

.toc-item.toc-h3 {
  margin-left: 1rem;
}

.toc-item.toc-h4 {
  margin-left: 2rem;
}

.toc-link {
  display: block;
  color: var(--muted-foreground);
  text-decoration: none;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.toc-link:hover,
.toc-link.active {
  color: var(--primary);
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stats-list .stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stats-list .stat-icon {
  font-size: 1.25rem;
}

.stats-list .stat-content {
  display: flex;
  flex-direction: column;
}

.stats-list .stat-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

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

.latest-posts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.latest-post-item {
  display: flex;
  gap: 1rem;
}

.latest-post-image {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 0.25rem;
  overflow: hidden;
}

.latest-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--muted);
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
}

.latest-post-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.latest-post-title a {
  color: var(--foreground);
  text-decoration: none;
}

.latest-post-title a:hover {
  color: var(--primary);
}

.latest-post-meta {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.sidebar-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-newsletter-form input {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.sidebar-newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-link {
  background: var(--muted);
  color: var(--foreground);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}

.tag-link:hover {
  background: var(--primary);
  color: white;
}

.quick-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quick-links li {
  margin-bottom: 0.5rem;
}

.quick-links a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

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

/* Post Navigation Styles */
.post-navigation-section {
  background: #f8fafc;
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 1px solid var(--border);
}

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.nav-link {
  display: block;
  padding: 1.5rem;
  background: white;
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--foreground);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.nav-next .nav-link {
  text-align: right;
}

.nav-direction {
  display: block;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.nav-title {
  display: block;
  font-weight: 600;
  font-size: 1.125rem;
}

/* Newsletter CTA Styles */
.newsletter-cta-section {
  background: var(--gradient-primary);
  color: white;
  padding: 4rem 0;
  margin-top: 3rem;
}

.newsletter-cta-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.newsletter-cta-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.newsletter-cta-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.newsletter-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}

.newsletter-benefits li {
  margin-bottom: 0.5rem;
  opacity: 0.9;
}

.form-container {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 1rem;
  backdrop-filter: blur(10px);
}

.form-container h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.form-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cta-newsletter-form .newsletter-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.cta-newsletter-form .newsletter-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cta-newsletter-form .newsletter-btn:hover {
  background: hsl(20, 100%, 50%);
}

.newsletter-privacy {
  font-size: 0.875rem;
  opacity: 0.8;
  margin: 0;
}

/* Comments section */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.comment-form {
  margin-top: 2rem;
}

.comment-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* Success messages */
.success-message {
  background: var(--success);
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.error-message {
  background: var(--destructive);
  color: white;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  text-align: center;
}