/* Blog Specific Styles - Premium Edition */

/* Use the premium theme variables */
:root {
  /* Premium Color Palette */
  --primary-color: #0062be; /* Refined primary blue */
  --primary-dark: #004a8f; /* Deep blue for depth */
  --primary-light: #3d8dff; /* Vibrant accent blue */
  --secondary-color: #00b2a9; /* Teal accent */
  --accent-color: #ff6b35; /* Vibrant orange accent for CTAs */
  --text-color: #1a2a42; /* Rich dark blue for text */
  --text-light: #546a8b; /* Sophisticated medium blue for secondary text */
  --background-color: #ffffff;
  --background-alt: #f5f9ff; /* Subtle blue tint */
  --background-dark: #0a1525; /* Deep background for dark sections */
  --border-color: #e0e9f5; /* Subtle blue-tinted borders */
  --success-color: #00b2a9; /* Teal for success states */
  --warning-color: #ffb400; /* Amber for warnings */
  --danger-color: #ff3a5e; /* Vibrant red for errors */

  /* Premium Shadows */
  --shadow-sm: 0 2px 8px rgba(10, 21, 37, 0.04), 0 1px 2px rgba(10, 21, 37, 0.02);
  --shadow-md: 0 8px 24px rgba(10, 21, 37, 0.08), 0 2px 4px rgba(10, 21, 37, 0.03);
  --shadow-lg: 0 20px 40px rgba(10, 21, 37, 0.12), 0 4px 8px rgba(10, 21, 37, 0.06);
  --shadow-xl: 0 32px 64px rgba(10, 21, 37, 0.16), 0 8px 16px rgba(10, 21, 37, 0.08);

  /* Premium Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #008f85 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #ff8f5a 100%);
  --gradient-dark: linear-gradient(135deg, #0a1525 0%, #1a2a42 100%);

  /* Refined Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
}

/* Blog Header */
.blog-header {
  background: var(--gradient-primary);
  padding: 150px 0 100px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.blog-header:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.2;
  pointer-events: none;
}

.blog-header:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
  pointer-events: none;
}

.blog-header h1 {
  font-family: "Manrope", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease-out forwards;
}

.blog-header p {
  font-family: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

/* Blog Categories */
.blog-categories {
  background-color: white;
  padding: 20px 0;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 70px;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-categories.scrolled {
  padding: 15px 0;
  box-shadow: var(--shadow-lg);
}

.categories-wrapper {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.category-item {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 500;
  transition: var(--transition-medium);
  color: var(--text-color);
  background-color: rgba(245, 249, 255, 0.8);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-family: "Inter", sans-serif;
  cursor: pointer;
}

.category-item:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-medium);
  z-index: -1;
}

.category-item:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.category-item:hover:before {
  opacity: 1;
}

.category-item.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.category-item.active:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Featured Post */
.featured-post {
  padding: 80px 0;
  background-color: var(--background-color);
  position: relative;
}

.featured-post:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230062be' fill-opacity='0.02' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

.featured-post-card {
  display: flex;
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: var(--transition-medium);
  border: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
  animation: fadeIn 1s ease-out forwards;
}

.featured-post-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(0, 98, 190, 0.2);
}

.featured-post-image {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 450px;
}

.featured-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: absolute;
  top: 0;
  left: 0;
}

.featured-post-card:hover .featured-post-image img {
  transform: scale(1.05);
}

.featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--gradient-primary);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-md);
  z-index: 2;
  font-family: "Inter", sans-serif;
}

.featured-post-content {
  flex: 1;
  padding: 50px;
  display: flex;
  flex-direction: column;
  background-color: white;
}

.post-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.post-category {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding-left: 15px;
  transition: var(--transition-medium);
  font-family: "Inter", sans-serif;
}

.post-category:before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--gradient-primary);
  border-radius: 50%;
  transition: var(--transition-medium);
}

.post-category:hover {
  color: var(--primary-dark);
}

.post-category:hover:before {
  transform: translateY(-50%) scale(1.2);
}

.post-date {
  color: var(--text-light);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  font-family: "Inter", sans-serif;
}

.post-date i {
  margin-right: 8px;
  font-size: 0.9rem;
  color: var(--primary-color);
}

.featured-post-content h2 {
  font-family: "Manrope", sans-serif;
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.3;
  color: var(--text-color);
  transition: var(--transition-medium);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.featured-post-card:hover .featured-post-content h2 {
  color: var(--primary-color);
}

.featured-post-content p {
  font-family: "Inter", sans-serif;
  color: var(--text-light);
  margin-bottom: 30px;
  flex-grow: 1;
  line-height: 1.7;
  font-size: 1.05rem;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition-medium);
  position: relative;
  padding-bottom: 2px;
  font-family: "Inter", sans-serif;
}

.read-more:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.read-more i {
  margin-left: 8px;
  transition: var(--transition-medium);
}

.read-more:hover {
  color: var(--primary-dark);
}

.read-more:hover:after {
  width: 100%;
}

.read-more:hover i {
  transform: translateX(5px);
}

.post-stats {
  display: flex;
  gap: 20px;
}

.post-stats span {
  display: flex;
  align-items: center;
  color: var(--text-light);
  font-size: 0.95rem;
  transition: var(--transition-medium);
  font-family: "Inter", sans-serif;
}

.post-stats span:hover {
  color: var(--primary-color);
}

.post-stats i {
  margin-right: 8px;
  color: var(--primary-color);
}

/* Blog Posts Grid */
.blog-posts {
  padding: 100px 0;
  background-color: var(--background-alt);
  position: relative;
}

.blog-posts:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230062be' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.blog-card {
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition-medium);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s ease forwards;
  animation-play-state: paused;
}

.blog-card.visible {
  animation-play-state: running;
}

.blog-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient-primary);
  z-index: 1;
  opacity: 0;
  transition: var(--transition-medium);
}

.blog-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 98, 190, 0.2);
}

.blog-card:hover:before {
  opacity: 1;
}

.blog-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.blog-card:hover .blog-image img {
  transform: scale(1.1);
}

.blog-category {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: var(--gradient-primary);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 2;
  transition: var(--transition-medium);
  font-family: "Inter", sans-serif;
}

.blog-card:hover .blog-category {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.blog-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-date {
  display: block;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  font-family: "Inter", sans-serif;
}

.blog-date:before {
  content: "\f073";
  font-family: "Font Awesome 5 Free";
  margin-right: 8px;
  color: var(--primary-color);
  font-size: 0.9rem;
}

.blog-content h3 {
  font-family: "Manrope", sans-serif;
  font-size: 1.4rem;
  margin-bottom: 15px;
  line-height: 1.4;
  transition: var(--transition-medium);
  color: var(--text-color);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.blog-card:hover .blog-content h3 {
  color: var(--primary-color);
}

.blog-content p {
  font-family: "Inter", sans-serif;
  color: var(--text-light);
  margin-bottom: 25px;
  font-size: 1rem;
  line-height: 1.7;
  flex-grow: 1;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 60px;
  position: relative;
  z-index: 1;
}

.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: white;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition-medium);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  font-family: "Inter", sans-serif;
}

.pagination a.next-page {
  width: auto;
  padding: 0 25px;
  border-radius: var(--radius-full);
}

.pagination a.next-page i {
  margin-left: 8px;
  transition: var(--transition-medium);
}

.pagination a:hover {
  background-color: rgba(0, 98, 190, 0.05);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pagination a:hover.next-page i {
  transform: translateX(5px);
}

.pagination a.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

/* Newsletter Section */
.newsletter {
  padding: 100px 0;
  background-color: var(--background-color);
  position: relative;
}

.newsletter:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230062be' fill-opacity='0.02' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

.newsletter-content {
  background: var(--gradient-primary);
  padding: 70px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

.newsletter-content:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
  pointer-events: none;
}

.newsletter-text {
  flex: 1;
}

.newsletter-text h2 {
  font-family: "Manrope", sans-serif;
  color: white;
  margin-bottom: 20px;
  font-size: 2.2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-weight: 700;
}

.newsletter-text p {
  font-family: "Inter", sans-serif;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.newsletter-form {
  flex: 1;
  display: flex;
  gap: 15px;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 18px 25px;
  border: none;
  border-radius: var(--radius-full);
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-medium);
}

.newsletter-form input:focus {
  outline: none;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.newsletter-form .btn-primary {
  background-color: white;
  color: var(--primary-color);
  box-shadow: var(--shadow-md);
  padding: 18px 30px;
  font-weight: 600;
  transition: var(--transition-medium);
  font-family: "Inter", sans-serif;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
}

.newsletter-form .btn-primary:hover {
  background-color: var(--primary-light);
  color: white;
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Single Blog Post Page Styles */
.blog-post-header {
  padding: 200px 0 120px;
  background: var(--gradient-primary);
  color: white;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.blog-post-header:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
  pointer-events: none;
}

.blog-post-header:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
  pointer-events: none;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.blog-post-meta .author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
  box-shadow: var(--shadow-md);
  transition: var(--transition-medium);
}

.author-avatar:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.author-name {
  font-weight: 600;
  font-size: 1.05rem;
  font-family: "Inter", sans-serif;
}

.blog-post-meta .date,
.blog-post-meta .read-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
}

.blog-post-meta i {
  font-size: 1.2rem;
}

.blog-post-header h1 {
  font-family: "Manrope", sans-serif;
  font-size: 3.5rem;
  margin-bottom: 25px;
  line-height: 1.2;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.8s ease-out forwards;
}

.blog-post-header p {
  font-family: "Inter", sans-serif;
  font-size: 1.3rem;
  max-width: 800px;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  animation: fadeInUp 0.8s ease-out 0.2s forwards;
  opacity: 0;
}

.blog-post-content {
  padding: 100px 0;
  background-color: var(--background-color);
  position: relative;
}

.blog-post-content:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230062be' fill-opacity='0.02' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

.blog-post-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  padding: 0 0 50px;
  position: relative;
  z-index: 1;
  border: 1px solid var(--border-color);
  animation: fadeIn 1s ease-out forwards;
}

.blog-post-image {
  margin-bottom: 50px;
  overflow: hidden;
}

.blog-post-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.blog-post-container:hover .blog-post-image img {
  transform: scale(1.03);
}

.blog-post-text {
  padding: 0 50px;
}

.blog-post-text h2 {
  font-family: "Manrope", sans-serif;
  font-size: 2.2rem;
  margin: 50px 0 25px;
  color: var(--text-color);
  position: relative;
  padding-bottom: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.blog-post-text h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

.blog-post-text h3 {
  font-family: "Manrope", sans-serif;
  font-size: 1.6rem;
  margin: 40px 0 20px;
  color: var(--text-color);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.blog-post-text p {
  font-family: "Inter", sans-serif;
  margin-bottom: 25px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
}

.blog-post-text ul,
.blog-post-text ol {
  margin-bottom: 25px;
  padding-left: 25px;
}

.blog-post-text li {
  font-family: "Inter", sans-serif;
  margin-bottom: 12px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
}

.blog-post-text blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 25px 35px;
  margin: 40px 0;
  background-color: rgba(0, 98, 190, 0.05);
  font-style: italic;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  position: relative;
}

.blog-post-text blockquote:before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.blog-post-text blockquote p {
  font-family: "Inter", sans-serif;
  margin-bottom: 0;
  font-size: 1.2rem;
  color: var(--text-color);
  position: relative;
  z-index: 1;
}

.blog-post-text img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  margin: 40px 0;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-medium);
}

.blog-post-text img:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.blog-post-text .highlight {
  background-color: rgba(0, 98, 190, 0.05);
  padding: 35px;
  border-radius: var(--radius-lg);
  margin: 40px 0;
  border-left: 4px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.blog-post-text .highlight h4 {
  font-family: "Manrope", sans-serif;
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-weight: 700;
}

.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 50px;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-post-tags a {
  font-family: "Inter", sans-serif;
  background-color: rgba(0, 98, 190, 0.08);
  color: var(--primary-color);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  transition: var(--transition-medium);
  box-shadow: var(--shadow-sm);
  font-weight: 500;
}

.blog-post-tags a:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.blog-post-share {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0 50px 50px;
  flex-wrap: wrap;
}

.blog-post-share span {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  color: var(--text-color);
  font-size: 1.05rem;
}

.blog-post-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background-color: #f5f9ff;
  color: var(--text-color);
  transition: var(--transition-medium);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.blog-post-share a:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.blog-post-share a.facebook:hover {
  background-color: #3b5998;
  color: white;
  border-color: #3b5998;
}

.blog-post-share a.twitter:hover {
  background-color: #1da1f2;
  color: white;
  border-color: #1da1f2;
}

.blog-post-share a.linkedin:hover {
  background-color: #0077b5;
  color: white;
  border-color: #0077b5;
}

.blog-post-share a.pinterest:hover {
  background-color: #bd081c;
  color: white;
  border-color: #bd081c;
}

.blog-post-author {
  background-color: white;
  padding: 35px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 30px;
  margin: 0 50px 50px;
  border: 1px solid var(--border-color);
  transition: var(--transition-medium);
}

.blog-post-author:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 98, 190, 0.2);
}

.blog-post-author-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  border: 3px solid white;
  transition: var(--transition-medium);
}

.blog-post-author:hover .blog-post-author-avatar {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.blog-post-author-info h4 {
  font-family: "Manrope", sans-serif;
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text-color);
  font-weight: 700;
}

.blog-post-author-info p {
  font-family: "Inter", sans-serif;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 1.05rem;
}

.blog-post-author-social {
  display: flex;
  gap: 12px;
}

.blog-post-author-social a {
  color: var(--primary-color);
  font-size: 1.3rem;
  transition: var(--transition-medium);
}

.blog-post-author-social a:hover {
  transform: translateY(-3px);
  color: var(--primary-dark);
}

/* Related Posts */
.related-posts {
  padding: 100px 0;
  background-color: var(--background-alt);
  position: relative;
}

.related-posts:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230062be' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

/* Premium table of contents */
.table-of-contents {
  position: sticky;
  top: 100px;
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 25px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  transition: var(--transition-medium);
  margin: 40px 0;
}

.table-of-contents:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 98, 190, 0.2);
}

.table-of-contents h4 {
  font-family: "Manrope", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.table-of-contents ul {
  padding-left: 0;
  margin-bottom: 0;
}

.table-of-contents ul ul {
  padding-left: 20px;
}

.table-of-contents li {
  margin-bottom: 10px;
  list-style: none;
}

.table-of-contents a {
  font-family: "Inter", sans-serif;
  color: var(--text-light);
  font-size: 0.95rem;
  transition: var(--transition-medium);
  display: block;
  padding: 5px 0;
  border-left: 2px solid transparent;
  padding-left: 10px;
}

.table-of-contents a:hover,
.table-of-contents a.active {
  color: var(--primary-color);
  border-left: 2px solid var(--primary-color);
  transform: translateX(3px);
}

/* Premium code blocks */
.blog-post-text pre {
  background-color: #1a2a42;
  color: #f8f9fa;
  padding: 20px;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 30px 0;
  box-shadow: var(--shadow-md);
  position: relative;
}

.blog-post-text pre code {
  font-family: "Fira Code", monospace;
  font-size: 0.95rem;
  line-height: 1.6;
}

.blog-post-text pre:before {
  content: attr(data-language);
  position: absolute;
  top: 0;
  right: 0;
  background: var(--primary-color);
  color: white;
  padding: 5px 10px;
  font-size: 0.8rem;
  border-radius: 0 var(--radius-md) 0 var(--radius-md);
  font-weight: 600;
}

/* Premium image captions */
.blog-post-text figure {
  margin: 40px 0;
  text-align: center;
}

.blog-post-text figure img {
  margin: 0 0 10px 0;
}

.blog-post-text figcaption {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
}

/* Premium blockquote styling */
.blog-post-text blockquote.premium {
  border-left: none;
  background: linear-gradient(135deg, rgba(0, 98, 190, 0.05) 0%, rgba(0, 98, 190, 0.02) 100%);
  border-radius: var(--radius-lg);
  padding: 30px 40px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.blog-post-text blockquote.premium:before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  color: var(--primary-color);
  opacity: 0.1;
  font-family: Georgia, serif;
  line-height: 1;
}

.blog-post-text blockquote.premium:after {
  content: '"';
  position: absolute;
  bottom: -20px;
  right: 20px;
  font-size: 5rem;
  color: var(--primary-color);
  opacity: 0.1;
  font-family: Georgia, serif;
  line-height: 1;
}

.blog-post-text blockquote.premium p {
  position: relative;
  z-index: 1;
}

/* Premium table styling */
.blog-post-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.blog-post-text table thead {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
}

.blog-post-text table th {
  padding: 15px 20px;
  text-align: left;
  font-weight: 600;
}

.blog-post-text table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
}

.blog-post-text table tbody tr:last-child td {
  border-bottom: none;
}

.blog-post-text table tbody tr:hover {
  background-color: rgba(0, 98, 190, 0.03);
}

/* Premium callout boxes */
.callout {
  padding: 25px 30px;
  margin: 30px 0;
  border-radius: var(--radius-lg);
  position: relative;
  box-shadow: var(--shadow-md);
}

.callout:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.callout.info {
  background-color: rgba(0, 98, 190, 0.05);
}

.callout.info:before {
  background-color: var(--primary-color);
}

.callout.warning {
  background-color: rgba(255, 180, 0, 0.05);
}

.callout.warning:before {
  background-color: var(--warning-color);
}

.callout.danger {
  background-color: rgba(255, 58, 94, 0.05);
}

.callout.danger:before {
  background-color: var(--danger-color);
}

.callout.success {
  background-color: rgba(0, 178, 169, 0.05);
}

.callout.success:before {
  background-color: var(--success-color);
}

.callout h4 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* Premium 3D effect for cards */
.premium-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.premium-card:hover {
  transform: translateY(-15px) rotateX(5deg);
}

/* Premium glow effect */
.premium-glow {
  position: relative;
}

.premium-glow:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-shadow: 0 0 30px rgba(0, 98, 190, 0.3);
  border-radius: inherit;
  opacity: 0;
  transition: var(--transition-medium);
  z-index: -1;
}

.premium-glow:hover:after {
  opacity: 1;
}

/* Premium shimmer effect */
@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

.shimmer-effect {
  position: relative;
  overflow: hidden;
}

.shimmer-effect:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  z-index: 1;
}

/* Premium reading progress bar */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--gradient-primary);
  z-index: 1001;
  transition: width 0.1s ease;
}

/* Blog author highlight */
.featured-author {
  background: linear-gradient(90deg, rgba(0, 98, 190, 0.08) 0%, rgba(0, 98, 190, 0.03) 100%);
  border-left: 3px solid var(--primary-color);
  padding: 20px;
  margin-top: 30px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-medium);
}

.featured-author:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.featured-author p {
  font-family: "Inter", sans-serif;
  font-style: italic;
  margin-bottom: 0;
}

/* Skip to content link for accessibility */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
}

.skip-to-content:focus {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  padding: 15px 20px;
  background: var(--primary-color);
  color: white;
  z-index: 9999;
  font-weight: bold;
  border-radius: 0 0 var(--radius-md) 0;
}

/* Custom scrollbar for blog content */
.blog-post-text::-webkit-scrollbar {
  width: 10px;
}

.blog-post-text::-webkit-scrollbar-track {
  background: #f5f9ff;
  border-radius: 10px;
}

.blog-post-text::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary-color), var(--primary-dark));
  border-radius: 10px;
  border: 3px solid #f5f9ff;
}

.blog-post-text::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--primary-dark), var(--primary-color));
}

/* Enhanced animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 98, 190, 0.4);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(0, 98, 190, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 98, 190, 0);
  }
}

/* Animation delays for staggered effects */
.blog-grid .blog-card:nth-child(2) {
  animation-delay: 0.1s;
}

.blog-grid .blog-card:nth-child(3) {
  animation-delay: 0.2s;
}

.blog-grid .blog-card:nth-child(4) {
  animation-delay: 0.3s;
}

.blog-grid .blog-card:nth-child(5) {
  animation-delay: 0.4s;
}

.blog-grid .blog-card:nth-child(6) {
  animation-delay: 0.5s;
}

/* Enhanced focus styles for accessibility */
a:focus,
button:focus,
input:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .blog-post-header h1 {
    font-size: 3rem;
  }

  .blog-post-container {
    max-width: 90%;
  }

  .related-posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .featured-post-card {
    flex-direction: column;
  }

  .featured-post-image {
    height: 350px;
    min-height: auto;
  }

  .featured-post-image img {
    position: relative;
  }

  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .newsletter-content {
    flex-direction: column;
    text-align: center;
    padding: 50px 40px;
  }

  .blog-post-text {
    padding: 0 40px;
  }

  .blog-post-tags,
  .blog-post-share,
  .blog-post-author {
    margin-left: 40px;
    margin-right: 40px;
  }
}

@media (max-width: 768px) {
  .blog-header h1 {
    font-size: 2.5rem;
  }

  .blog-post-header h1 {
    font-size: 2.2rem;
  }

  .blog-post-meta {
    flex-wrap: wrap;
    gap: 15px;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }

  .newsletter-form input,
  .newsletter-form button {
    width: 100%;
  }

  .blog-post-text h2 {
    font-size: 1.8rem;
  }

  .blog-post-text h3 {
    font-size: 1.5rem;
  }

  .blog-post-text p,
  .blog-post-text li {
    font-size: 1.05rem;
  }

  .blog-post-text blockquote p {
    font-size: 1.15rem;
  }

  .blog-post-author {
    flex-direction: column;
    text-align: center;
    padding: 30px 25px;
  }

  .blog-post-author-avatar {
    margin: 0 auto 25px;
  }

  .blog-post-author-social {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .blog-header h1 {
    font-size: 2.2rem;
  }

  .blog-post-header h1 {
    font-size: 2rem;
  }

  .blog-post-header p {
    font-size: 1.1rem;
  }

  .blog-post-text {
    padding: 0 25px;
  }

  .blog-post-tags,
  .blog-post-share,
  .blog-post-author {
    margin-left: 25px;
    margin-right: 25px;
  }

  .blog-post-share {
    justify-content: center;
  }

  .blog-post-share span {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
  }

  .categories-wrapper {
    gap: 10px;
  }

  .category-item {
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  .featured-post-content {
    padding: 30px 25px;
  }

  .newsletter-content {
    padding: 40px 25px;
  }
}

/* Print styles for blog posts */
@media print {
  .navbar,
  .blog-categories,
  .related-posts,
  .newsletter,
  .footer,
  .back-to-top {
    display: none !important;
  }

  .blog-post-header {
    padding: 20px 0;
    background: none;
    color: #000;
  }

  .blog-post-header h1 {
    color: #000;
    text-shadow: none;
  }

  .blog-post-container {
    box-shadow: none;
    padding: 0;
  }

  .blog-post-text {
    font-size: 12pt;
  }

  .blog-post-text a {
    text-decoration: underline;
    color: #000;
  }

  .blog-post-text img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .blog-post-container {
    background-color: #1a1a1a;
  }

  .blog-post-text h2,
  .blog-post-text h3,
  .blog-post-author-info h4 {
    color: #f5f5f5;
  }

  .blog-post-text p,
  .blog-post-text li {
    color: #cccccc;
  }

  .blog-post-text blockquote {
    background-color: rgba(65, 153, 149, 0.1);
  }

  .blog-post-text blockquote p {
    color: #e0e0e0;
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .floating,
  .shimmer-effect:after {
    animation: none !important;
  }
}

/* Add premium font imports */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Manrope:wght@300;400;500;600;700;800&display=swap");
