/* ================================
   BLOG POST PAGES - EXCLUSIVE STYLES
   Dark, Mysterious, Neon Theme
   All classes prefixed to avoid conflicts
   ================================ */

/* Blog Post Page Variables */
.blog-page {
  --blog-primary-neon: #00ffff;
  --blog-secondary-neon: #ff00ff;
  --blog-accent-purple: #818cf8;
  --blog-accent-pink: #ec4899;
  --blog-accent-green: #10b981;
  --blog-dark-bg: #0a0a0a;
  --blog-darker-bg: #050505;
  --blog-card-bg: rgba(15, 15, 15, 0.9);
  --blog-text-primary: #ffffff;
  --blog-text-secondary: #b0b0b0;
  --blog-gradient-primary: linear-gradient(135deg, #00ffff, #818cf8);
  --blog-gradient-accent: linear-gradient(135deg, #818cf8, #ec4899);
}

/* Page Base */
.blog-page {
  background-color: var(--blog-dark-bg);
  color: var(--blog-text-primary);
  font-family: 'Exo', sans-serif;
  min-height: 100vh;
  position: relative;
}

/* Blog Hero Section */
.blog-hero-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #0a0a0a, #1a1a1a);
  padding-top: 93px;
}

@media (max-width: 768px) {
  .blog-hero-section {
    padding-top: 70px;
    min-height: 50vh;
  }
}

.blog-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(129, 140, 248, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(236, 72, 153, 0.1) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(0, 255, 255, 0.08) 0%,
      transparent 50%
    );
  z-index: 1;
}

/* Animated Background */
.blog-animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.blog-particle {
  position: absolute;
  background: radial-gradient(
    circle,
    rgba(129, 140, 248, 0.8) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

#particle-1 {
  width: 300px;
  height: 300px;
  top: -150px;
  left: -150px;
  animation: float-particle-1 25s ease-in-out infinite;
}

#particle-2 {
  width: 200px;
  height: 200px;
  bottom: -100px;
  right: -100px;
  background: radial-gradient(
    circle,
    rgba(236, 72, 153, 0.6) 0%,
    transparent 70%
  );
  animation: float-particle-2 30s ease-in-out infinite;
}

#particle-3 {
  width: 150px;
  height: 150px;
  top: 50%;
  right: 10%;
  background: radial-gradient(
    circle,
    rgba(0, 255, 255, 0.5) 0%,
    transparent 70%
  );
  animation: float-particle-3 20s ease-in-out infinite;
}

.blog-code-float {
  position: absolute;
  font-family: 'Fira Code', monospace;
  font-size: 2rem;
  font-weight: bold;
  opacity: 0.1;
  color: var(--blog-primary-neon);
}

#code-1 {
  top: 20%;
  right: 15%;
  animation: float-code-1 15s ease-in-out infinite;
}

#code-2 {
  bottom: 30%;
  left: 10%;
  color: var(--blog-accent-purple);
  animation: float-code-2 20s ease-in-out infinite;
}

#code-3 {
  top: 60%;
  left: 30%;
  color: var(--blog-accent-pink);
  font-size: 3rem;
  animation: float-code-3 18s ease-in-out infinite;
}

/* Animations */
@keyframes float-particle-1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(100px, 50px) scale(1.2);
  }
}

@keyframes float-particle-2 {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(-80px, -80px) rotate(180deg);
  }
}

@keyframes float-particle-3 {
  0%,
  100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(-50px, -30px);
  }
  66% {
    transform: translate(30px, 20px);
  }
}

@keyframes float-code-1 {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
    opacity: 0.1;
  }
  50% {
    transform: rotate(15deg) translateY(-20px);
    opacity: 0.2;
  }
}

@keyframes float-code-2 {
  0%,
  100% {
    transform: rotate(-10deg);
    opacity: 0.1;
  }
  50% {
    transform: rotate(10deg);
    opacity: 0.15;
  }
}

@keyframes float-code-3 {
  0%,
  100% {
    transform: scale(1) translateX(0);
  }
  50% {
    transform: scale(1.1) translateX(20px);
  }
}

/* Hero Content */
.blog-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 2rem;
  max-width: 1000px;
  width: 100%;
}

/* Breadcrumb */
.blog-breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--blog-text-secondary);
}

.breadcrumb-link {
  color: var(--blog-accent-purple);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: var(--blog-primary-neon);
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  opacity: 0.5;
}

.breadcrumb-current {
  color: var(--blog-text-primary);
}

/* Blog Title */
.blog-hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin: 0 0 2rem 0;
  line-height: 1.1;
  letter-spacing: -1px;
}

.blog-title-word-1 {
  display: block;
  background: linear-gradient(135deg, #00ffff 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.2em;
}

.blog-title-word-2 {
  display: block;
  background: linear-gradient(135deg, #ec4899 0%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Meta Info */
.blog-meta-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--blog-text-secondary);
  font-size: 0.9rem;
}

.blog-date,
.blog-reading-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-icon {
  width: 16px;
  height: 16px;
  stroke: var(--blog-accent-purple);
}

.blog-category {
  background: rgba(129, 140, 248, 0.2);
  color: var(--blog-accent-purple);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
}

/* Blog Content Section */
.blog-content-section {
  padding: 80px 0;
  background: var(--blog-dark-bg);
  position: relative;
}

.blog-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 60px;
}

@media (max-width: 1024px) {
  .blog-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .blog-main-content {
    margin-left: 0 !important;
  }
}

/* Main Content */
.blog-main-content {
  max-width: 800px;
  margin-left: 5rem;
}

/* Featured Image */
.blog-featured-image {
  position: relative;
  margin-bottom: 3rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  pointer-events: none;
}

/* Article Content */
.blog-article-content {
  color: var(--blog-text-primary);
}

.blog-lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--blog-text-secondary);
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Blog Sections */
.blog-section {
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.blog-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--blog-gradient-accent);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 800;
  flex-shrink: 0;
}

.blog-paragraph {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--blog-text-primary);
  margin-bottom: 1.5rem;
}

/* Strong/Bold Text Styling */
.blog-paragraph strong,
.blog-lead strong,
.highlight-content strong,
.blog-article-content strong {
  color: var(--blog-primary-neon);
  font-weight: 700;
}

/* Superscript Citations */
.blog-article-content sup {
  font-size: 0.75rem;
  color: var(--blog-accent-purple);
  font-weight: 600;
  margin-left: 2px;
  vertical-align: super;
  cursor: help;
  transition: color 0.3s ease;
}

.blog-article-content sup:hover {
  color: var(--blog-primary-neon);
}

/* Links in Blog Content */

.blog-article-content a {
  color: var(--blog-accent-purple);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.blog-article-content a:hover {
  color: var(--blog-primary-neon);
  border-bottom-color: var(--blog-primary-neon);
}

/* Highlight Box */
.blog-highlight-box {
  background: linear-gradient(
    135deg,
    rgba(129, 140, 248, 0.1) 0%,
    rgba(236, 72, 153, 0.1) 100%
  );
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.highlight-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.highlight-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--blog-accent-purple);
}

.highlight-content p {
  margin: 0;
  color: var(--blog-text-secondary);
  line-height: 1.6;
}

/* Feature List */
.blog-feature-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.blog-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.blog-feature-list li:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(129, 140, 248, 0.3);
  transform: translateX(10px);
}

.blog-feature-list.modern-list li {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 255, 0.05) 0%,
    rgba(129, 140, 248, 0.05) 100%
  );
  border-color: rgba(0, 255, 255, 0.2);
}

.blog-feature-list.modern-list li:hover {
  background: rgba(0, 255, 255, 0.08);
  border-color: rgba(0, 255, 255, 0.3);
}

.list-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  color: var(--blog-primary-neon);
}

.list-content {
  flex: 1;
}

.list-content strong {
  color: var(--blog-text-primary);
  display: inline;
  margin-right: 0.5rem;
}

/* Comparison Cards */
.blog-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .blog-comparison {
    grid-template-columns: 1fr;
  }
}

.comparison-card {
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
}

.cms-card {
  background: linear-gradient(
    135deg,
    rgba(255, 0, 0, 0.1) 0%,
    rgba(255, 100, 0, 0.1) 100%
  );
  border: 1px solid rgba(255, 0, 0, 0.3);
}

.custom-card {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 255, 0.1) 0%,
    rgba(129, 140, 248, 0.1) 100%
  );
  border: 1px solid rgba(0, 255, 255, 0.3);
}

.comparison-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.cms-card h3 {
  color: #ff6b6b;
}

.custom-card h3 {
  color: var(--blog-primary-neon);
}

.comparison-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.comparison-card li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.comparison-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  font-size: 1.5rem;
}

.cms-card li::before {
  color: #ff6b6b;
}

.custom-card li::before {
  color: var(--blog-primary-neon);
}

/* Call to Action Section */
.blog-cta-section {
  background: linear-gradient(
    135deg,
    rgba(129, 140, 248, 0.1) 0%,
    rgba(0, 255, 255, 0.1) 100%
  );
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  margin-top: 4rem;
}

.blog-cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: var(--blog-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-cta-section p {
  font-size: 1.2rem;
  color: var(--blog-text-secondary);
  margin-bottom: 2rem;
}

.blog-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  background: var(--blog-gradient-accent);
  color: white !important; /* Add !important to override any conflicting styles */
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(129, 140, 248, 0.3);
}

.blog-cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(129, 140, 248, 0.4);
  color: white !important; /* Also add !important to hover state */
}

.cta-arrow {
  transition: transform 0.3s ease;
  color: white; /* Ensure arrow is also white */
}

.blog-cta-button:hover .cta-arrow {
  transform: translateX(5px);
}

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

@media (max-width: 1024px) {
  .blog-sidebar {
    position: static;
  }
}

.sidebar-widget {
  background: var(--blog-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--blog-text-primary);
}

/* Social Share */
.social-share {
  display: flex;
  gap: 1rem;
}

.share-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--blog-text-secondary);
  transition: all 0.3s ease;
}

.share-button:hover {
  transform: translateY(-3px);
}

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

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

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

/* Related Posts */
.related-posts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-post {
  display: block;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.related-post:hover {
  background: rgba(129, 140, 248, 0.1);
  transform: translateX(5px);
}

.related-post h4 {
  color: var(--blog-text-primary);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.related-date {
  color: var(--blog-text-secondary);
  font-size: 0.85rem;
}

/* Newsletter Box */
.newsletter-box {
  background: var(--blog-gradient-accent);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
}

.newsletter-box h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.newsletter-box p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

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

.newsletter-form input {
  padding: 0.8rem;
  border: none;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1rem;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 50px;
  background: white;
  color: var(--blog-accent-purple);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

/* Quick Calculator Widget */
.quick-calculator {
  text-align: center;
  padding: 1.5rem;
  background: rgba(129, 140, 248, 0.1);
  border-radius: 10px;
}

.quick-calculator p {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--blog-text-secondary);
}

.calculator-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--blog-gradient-accent);
  color: white !important;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none !important;
}

.calculator-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(129, 140, 248, 0.3);
  color: white !important;
  border: none !important;
}

/* Sticky Widget */
.sticky-widget {
  position: sticky;
  top: 100px;
}

/* Stuff You Should Know Section */
.stuff-you-should-know {
  padding: 100px 0;
  background: linear-gradient(180deg, #050505, #0a0a0a);
  position: relative;
  overflow: hidden;
}

.stuff-you-should-know::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 10% 50%,
      rgba(0, 255, 255, 0.1) 0%,
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 50%,
      rgba(255, 0, 255, 0.08) 0%,
      transparent 30%
    );
  pointer-events: none;
}

.stuff-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.stuff-title {
  text-align: center;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 3rem;
}

.title-accent {
  background: var(--blog-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stuff-content {
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3rem;
  backdrop-filter: blur(10px);
}

.stuff-intro {
  margin-bottom: 3rem;
}

.stuff-intro p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--blog-text-secondary);
}

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

.stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(129, 140, 248, 0.2);
  background: rgba(129, 140, 248, 0.05);
}

.stat-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.stat-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--blog-accent-purple);
}

.stat-card ul {
  list-style: none;
  padding: 0;
}

.stat-card li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.6;
}

.stat-card li:last-child {
  border-bottom: none;
}

.stat-card strong {
  color: var(--blog-primary-neon);
}

/* Key Takeaways */
.key-takeaways {
  margin-top: 3rem;
}

.key-takeaways h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--blog-text-primary);
}

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

.takeaway-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(0, 255, 255, 0.05) 0%,
    rgba(129, 140, 248, 0.05) 100%
  );
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.takeaway-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.takeaway-item p {
  margin: 0;
  line-height: 1.6;
  color: var(--blog-text-secondary);
}

.takeaway-item strong {
  color: var(--blog-primary-neon);
  font-weight: 700;
}

/* ================================
   WEBSITE COST BLOG SPECIFIC STYLES
   ================================ */

/* Pricing Comparison Interactive */
.pricing-comparison-interactive {
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  backdrop-filter: blur(10px);
}

.pricing-comparison-interactive h3 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--blog-accent-purple);
}

/* Cost Toggle Buttons */
.cost-toggle {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.toggle-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: var(--blog-text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  background: rgba(129, 140, 248, 0.1);
  border-color: var(--blog-accent-purple);
}

.toggle-btn.active {
  background: var(--blog-gradient-accent);
  border-color: transparent;
  color: white;
}

/* Cost Comparison Grid */
.cost-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .cost-comparison-grid {
    grid-template-columns: 1fr;
  }
}

.cost-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.cost-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(129, 140, 248, 0.2);
}

.cost-card h4 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.site-builder h4 {
  color: var(--blog-accent-pink);
}

.custom-dev h4 {
  color: var(--blog-primary-neon);
}

.cost-label {
  display: block;
  font-size: 0.9rem;
  color: var(--blog-text-secondary);
  margin-bottom: 0.5rem;
}

.cost-amount {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: var(--blog-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hidden-costs,
.included-features {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.hidden-costs li,
.included-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--blog-text-secondary);
}

.hidden-costs li::before {
  content: '−';
  position: absolute;
  left: 0;
  color: var(--blog-accent-pink);
  font-weight: bold;
}

.included-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blog-primary-neon);
}

/* ROI Calculator Widget */
.roi-calculator-widget {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 255, 0.1) 0%,
    rgba(129, 140, 248, 0.1) 100%
  );
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 20px;
  padding: 2.5rem;
  margin: 2rem 0;
  text-align: center;
}

.roi-calculator-widget h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--blog-primary-neon);
}

.calculator-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .calculator-inputs {
    grid-template-columns: 1fr;
  }
}

.input-group {
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--blog-text-secondary);
  font-size: 0.9rem;
}

.input-group input {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--blog-primary-neon);
  background: rgba(0, 255, 255, 0.05);
}

.roi-results {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  padding: 2rem;
  margin-top: 2rem;
}

.roi-results h4 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--blog-accent-purple);
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-item:last-child {
  border-bottom: none;
}

.result-label {
  color: var(--blog-text-secondary);
}

.result-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blog-primary-neon);
}

.calculate-btn {
  padding: 1rem 3rem;
  background: var(--blog-gradient-accent);
  border: none;
  border-radius: 50px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(129, 140, 248, 0.3);
}

.calculate-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(129, 140, 248, 0.4);
}

/* Core Web Vitals Comparison */
.vitals-comparison {
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
}

.vitals-comparison h3 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--blog-accent-purple);
}

.vitals-chart {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.vital-bar {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .vital-bar {
    grid-template-columns: 100px 1fr;
  }
}

.platform-name {
  font-size: 0.9rem;
  color: var(--blog-text-secondary);
  text-align: right;
}

.bar-wrapper {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  height: 30px;
  border-radius: 15px;
  overflow: hidden;
}

.bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: var(--blog-gradient-primary);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 1rem;
  transition: width 1s ease-out;
}

.percentage {
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Migration Timeline */
.migration-timeline {
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
}

.migration-timeline h3 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--blog-accent-pink);
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px; /* Always position line on the left */
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--blog-accent-pink) 0%,
    var(--blog-accent-purple) 100%
  );
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: auto 1fr; /* Always use mobile layout */
  gap: 1rem;
  align-items: center;
}

.timeline-marker {
  background: var(--blog-gradient-accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.timeline-content {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 1.5rem;
}

.timeline-content h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--blog-text-primary);
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--blog-text-secondary);
  margin: 0;
}

/* Total Cost of Ownership */
.tco-comparison {
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
}

.tco-comparison h3 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--blog-accent-purple);
}

.tco-chart {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .tco-chart {
    grid-template-columns: 1fr;
  }
}

.tco-option {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
}

.tco-option.recommended {
  border-color: var(--blog-primary-neon);
  background: rgba(0, 255, 255, 0.05);
}

.tco-option h4 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--blog-text-primary);
}

.cost-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cost-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.cost-item:last-child {
  border-bottom: none;
}

.cost-total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
  font-size: 1.1rem;
}

.cost-total span:last-child {
  color: var(--blog-primary-neon);
  font-size: 1.3rem;
}

.savings-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--blog-gradient-accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 5px 15px rgba(129, 140, 248, 0.3);
}

/* Decision Framework */
.decision-framework {
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
}

.decision-framework h3 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--blog-accent-purple);
}

.decision-factors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .decision-factors {
    grid-template-columns: 1fr;
  }
}

.factor-card {
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
}

.factor-card.yes {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 255, 0.1) 0%,
    rgba(129, 140, 248, 0.1) 100%
  );
  border: 1px solid rgba(0, 255, 255, 0.3);
}

.factor-card.maybe {
  background: linear-gradient(
    135deg,
    rgba(255, 0, 255, 0.1) 0%,
    rgba(236, 72, 153, 0.1) 100%
  );
  border: 1px solid rgba(236, 72, 153, 0.3);
}

.factor-card h4 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--blog-text-primary);
}

.factor-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.factor-card li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--blog-text-secondary);
}

.factor-card.yes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blog-primary-neon);
  font-weight: bold;
}

.factor-card.maybe li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--blog-accent-pink);
  font-size: 1.5rem;
  line-height: 1;
}

/* Final Thoughts Box */
.blog-highlight-box.final-thoughts {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 255, 0.15) 0%,
    rgba(129, 140, 248, 0.15) 100%
  );
  border-color: var(--blog-primary-neon);
}

/* Sources Section */
.blog-sources {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-sources h3 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--blog-accent-purple);
}

.sources-list {
  list-style: none;
  padding: 0;
  counter-reset: source-counter;
}

.sources-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  font-size: 0.6rem;
  color: var(--blog-text-secondary);
  line-height: 1.6;
  counter-increment: source-counter;
}

.sources-list li::before {
  content: counter(source-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: rgba(129, 140, 248, 0.2);
  color: var(--blog-accent-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Modern Stats Cards with Gradient Borders */
.stats-grid.modern-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card.gradient-border {
  background: rgba(15, 15, 15, 0.9);
  border: 2px solid transparent;
  border-radius: 15px;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-card.gradient-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 15px;
  padding: 2px;
  background: linear-gradient(
    135deg,
    var(--blog-primary-neon),
    var(--blog-accent-purple)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--blog-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-description {
  font-size: 0.9rem;
  color: var(--blog-text-secondary);
  line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .blog-section-title {
    font-size: 1.5rem;
  }

  .section-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .blog-paragraph {
    font-size: 1rem;
  }

  .blog-highlight-box {
    flex-direction: column;
    padding: 1.5rem;
  }

  .blog-cta-section {
    padding: 2rem;
  }

  .blog-cta-section h2 {
    font-size: 1.8rem;
  }

  .stuff-content {
    padding: 2rem 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 1.5rem;
  }

  .blog-post-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }

  .blog-post-subtitle {
    font-size: 1.5rem;
  }

  .blog-post-description {
    font-size: 1.1rem;
  }

  .blog-post-paragraph {
    font-size: 1rem;
  }

  .stuff-you-should-know h3 {
    font-size: 1.5rem;
  }
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-post {
  animation: fadeInUp 0.8s ease-out;
}

.stuff-you-should-know li {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.stuff-you-should-know li:nth-child(1) {
  animation-delay: 0.1s;
}
.stuff-you-should-know li:nth-child(2) {
  animation-delay: 0.2s;
}
.stuff-you-should-know li:nth-child(3) {
  animation-delay: 0.3s;
}
.stuff-you-should-know li:nth-child(4) {
  animation-delay: 0.4s;
}
.stuff-you-should-know li:nth-child(5) {
  animation-delay: 0.5s;
}
.stuff-you-should-know li:nth-child(6) {
  animation-delay: 0.6s;
}
.stuff-you-should-know li:nth-child(7) {
  animation-delay: 0.7s;
}
.stuff-you-should-know li:nth-child(8) {
  animation-delay: 0.8s;
}

/* Pennsylvania Pricing Table Styles */
.pa-pricing-comparison {
  margin: 3rem 0;
}

.pa-pricing-comparison h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  background: var(--blog-gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.pricing-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.pa-pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--blog-card-bg);
  font-size: 1rem;
}

.pa-pricing-table thead {
  background: linear-gradient(
    135deg,
    rgba(129, 140, 248, 0.1),
    rgba(168, 85, 247, 0.1)
  );
  border-bottom: 2px solid rgba(129, 140, 248, 0.3);
}

.pa-pricing-table th {
  padding: 1.5rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--blog-primary-neon);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.pa-pricing-table td {
  padding: 1.2rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--blog-text-primary);
}

.pa-pricing-table tbody tr:hover {
  background: rgba(129, 140, 248, 0.05);
  transition: background 0.3s ease;
}

.pa-pricing-table .savings {
  color: #4ade80;
  font-weight: 600;
}

/* Cost Factors Grid */
.cost-factors-grid {
  margin: 3rem 0;
}

.cost-factors-grid h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
  background: var(--blog-gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.factors-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.factor-item {
  background: var(--blog-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.factor-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--blog-gradient-accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.factor-item:hover::before {
  transform: scaleX(1);
}

.factor-item:hover {
  transform: translateY(-5px);
  border-color: rgba(129, 140, 248, 0.3);
  box-shadow: 0 10px 30px rgba(129, 140, 248, 0.2);
}

.factor-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.factor-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--blog-primary-neon);
}

.factor-item p {
  font-size: 0.95rem;
  color: var(--blog-text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* PA ROI Examples Grid */
.pa-roi-examples {
  margin: 3rem 0;
}

.pa-roi-examples h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
}

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

.roi-card {
  background: linear-gradient(
    135deg,
    rgba(129, 140, 248, 0.1),
    rgba(168, 85, 247, 0.1)
  );
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.roi-card h4 {
  color: var(--blog-primary-neon);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.roi-card p {
  margin: 0.5rem 0;
  color: var(--blog-text-primary);
}

.roi-card .roi-percentage {
  font-size: 2rem;
  font-weight: 700;
  background: var(--blog-gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 1rem;
}

/* Blog Subsection Styling */
.blog-subsection {
  margin: 2rem 0;
}

.blog-subsection h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--blog-text-primary);
  position: relative;
  padding-left: 1rem;
}

.blog-subsection h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 100%;
  background: var(--blog-gradient-accent);
  border-radius: 2px;
}

/* PA Quick Links Sidebar Widget */
.pa-quick-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pa-quick-links .quick-link {
  padding: 0.75rem 1rem;
  background: rgba(129, 140, 248, 0.1);
  border: 1px solid rgba(129, 140, 248, 0.2);
  border-radius: 8px;
  color: var(--blog-text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.pa-quick-links .quick-link:hover {
  background: rgba(129, 140, 248, 0.2);
  border-color: var(--blog-primary-neon);
  transform: translateX(5px);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .pa-pricing-table {
    font-size: 0.85rem;
  }

  .pa-pricing-table th,
  .pa-pricing-table td {
    padding: 0.8rem 0.5rem;
  }

  .factors-container {
    grid-template-columns: 1fr;
  }

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

  .roi-grid {
    grid-template-columns: 1fr;
  }
}
