/* Blog Modal Styles */

/* Main Blog Modal Overlay */
.blog-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.blog-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.blog-modal-content {
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Blog Modal Header */
.blog-modal-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.blog-header-content {
  flex: 1;
}

.blog-modal-title {
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-modal-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0;
}

.blog-modal-close {
  background: var(--bg-primary) !important;
  border: 2px solid var(--text-primary) !important;
  color: var(--text-primary) !important;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  z-index: 10;
  position: relative;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-modal-close:hover {
  background: var(--accent-color) !important;
  color: var(--text-primary) !important;
  transform: scale(1.05);
  border-color: var(--accent-color) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.blog-modal-close svg {
  width: 24px !important;
  height: 24px !important;
  stroke: var(--text-primary) !important;
  stroke-width: 2.5;
  fill: none;
  opacity: 1 !important;
  visibility: visible !important;
  color: var(--text-primary) !important;
}

.blog-modal-close svg line {
  stroke: var(--text-primary) !important;
  stroke-width: 2.5 !important;
  opacity: 1 !important;
}

/* Theme-specific styling for close button */
[data-theme="light"] .blog-modal-close {
  background: var(--bg-primary) !important;
  border-color: var(--text-primary) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .blog-modal-close {
  background: var(--bg-primary) !important;
  border-color: var(--text-primary) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

/* Color scheme specific styling */
[data-theme*="ocean"] .blog-modal-close {
  border-color: var(--accent-primary) !important;
}

[data-theme*="forest"] .blog-modal-close {
  border-color: var(--accent-primary) !important;
}

[data-theme*="sunset"] .blog-modal-close {
  border-color: var(--accent-primary) !important;
}

/* Mobile responsive styling */
@media (max-width: 768px) {
  .blog-modal-close {
    width: 44px;
    height: 44px;
    padding: 0.6rem;
  }

  .blog-modal-close svg {
    width: 20px !important;
    height: 20px !important;
  }

  .blog-modal-close .close-text {
    font-size: 20px;
  }

  .blog-modal-header {
    padding: 1rem 1.5rem;
  }
}

/* Ensure SVG is always visible */
.blog-modal-close svg {
  display: block;
}

/* Blog Modal Body */
.blog-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  background: var(--bg-primary);
}

/* Blog Loading State */
.blog-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  color: var(--text-secondary);
  height: 100%;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1.5rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.blog-loading p {
  font-size: 1.1rem;
  margin: 0;
}

/* Blog Error State */
.blog-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 0;
  text-align: center;
  color: var(--text-secondary);
  height: 100%;
}

.error-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.blog-error h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.blog-error p {
  margin-bottom: 2rem;
  max-width: 500px;
  font-size: 1.1rem;
}

/* Blog Posts List */
.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Blog Post List Item */
.blog-post-card {
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  padding: 1.5rem;
  gap: 1.5rem;
}

.blog-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow);
  border-color: var(--accent-primary);
  background: var(--bg-secondary);
}

.blog-post-header {
  flex: 1;
  padding: 0;
  border-bottom: none;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
}

.blog-post-date {
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-post-category {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 500;
}

.blog-post-title {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.blog-post-excerpt {
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 0;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-post-footer {
  padding: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.blog-post-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
}

.read-more {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.3s ease;
}

.blog-post-card:hover .read-more {
  color: var(--accent-secondary);
}

.read-more svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.blog-post-card:hover .read-more svg {
  transform: translateX(6px);
}

/* Individual Blog Post Modal */
.blog-post-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.blog-post-modal.active {
  display: flex;
}

.blog-post-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.blog-post-modal-content {
  position: relative;
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  max-width: 900px;
  max-height: 90vh;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 30px 80px var(--shadow);
  backdrop-filter: blur(10px);
}

.blog-post-modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  background: var(--bg-secondary);
  gap: 1rem;
}

.blog-post-header-content {
  flex: 1;
  min-width: 0; /* Allow content to shrink */
}

.blog-post-modal-title {
  color: var(--text-primary);
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0.5rem 0 0.75rem 0;
  line-height: 1.3;
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-post-modal-header .blog-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.blog-post-modal-header .blog-post-date {
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-post-modal-header .blog-post-category {
  background: var(--bg-primary);
  color: var(--text-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

.blog-post-modal-header .blog-post-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.blog-post-modal-header .author-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.7rem;
}

.blog-post-modal-close {
  background: var(--bg-primary) !important;
  border: 2px solid var(--text-primary) !important;
  color: var(--text-primary) !important;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  z-index: 10;
  position: relative;
  opacity: 1 !important;
  visibility: visible !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-post-modal-close:hover {
  background: var(--accent-color) !important;
  color: var(--text-primary) !important;
  transform: scale(1.05);
  border-color: var(--accent-color) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.blog-post-modal-close svg {
  width: 20px !important;
  height: 20px !important;
  stroke: var(--text-primary) !important;
  stroke-width: 2.5;
  fill: none;
  opacity: 1 !important;
  visibility: visible !important;
  color: var(--text-primary) !important;
}

.blog-post-modal-close svg line {
  stroke: var(--text-primary) !important;
  stroke-width: 2.5 !important;
  opacity: 1 !important;
}

/* Theme-specific styling for blog post modal close button */
[data-theme="light"] .blog-post-modal-close {
  background: var(--bg-primary) !important;
  border-color: var(--text-primary) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .blog-post-modal-close {
  background: var(--bg-primary) !important;
  border-color: var(--text-primary) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

/* Color scheme specific styling for blog post modal close button */
[data-theme*="ocean"] .blog-post-modal-close {
  border-color: var(--accent-primary) !important;
}

[data-theme*="forest"] .blog-post-modal-close {
  border-color: var(--accent-primary) !important;
}

[data-theme*="sunset"] .blog-post-modal-close {
  border-color: var(--accent-primary) !important;
}

.blog-post-modal-body {
  padding: 2.5rem;
  overflow-y: auto;
  max-height: calc(90vh - 100px);
}

/* Blog Post Content Styles */
.blog-post-content {
  color: var(--text-primary);
  line-height: 1.8;
  font-size: 1.1rem;
}

.blog-post-content h1,
.blog-post-content h2,
.blog-post-content h3,
.blog-post-content h4,
.blog-post-content h5,
.blog-post-content h6 {
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.blog-post-content h1 {
  font-size: 2.5rem;
  border-bottom: 3px solid var(--accent-primary);
  padding-bottom: 0.75rem;
  margin-top: 0;
}

.blog-post-content h2 {
  font-size: 2rem;
}

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

.blog-post-content h4 {
  font-size: 1.25rem;
}

.blog-post-content p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

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

.blog-post-content li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.blog-post-content code {
  background: var(--bg-secondary);
  color: var(--accent-primary);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
  font-weight: 600;
}

.blog-post-content pre {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.blog-post-content pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
  font-weight: normal;
}

.blog-post-content blockquote {
  border-left: 5px solid var(--accent-primary);
  background: var(--bg-secondary);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 12px 12px 0;
}

.blog-post-content blockquote p {
  margin: 0;
  color: var(--text-secondary);
  font-style: italic;
  font-size: 1.1rem;
}

.blog-post-content a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 600;
}

.blog-post-content a:hover {
  color: var(--accent-secondary);
  text-decoration: underline;
}

.blog-post-content hr {
  border: none;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--border-color) 50%,
    transparent 100%
  );
  margin: 3rem 0;
}

.blog-post-content strong {
  color: var(--text-primary);
  font-weight: 700;
}

.blog-post-content em {
  color: var(--text-secondary);
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .blog-modal-body {
    padding: 1.5rem;
  }

  .blog-posts {
    gap: 0.75rem;
    padding: 0 0.5rem;
  }

  .blog-post-header {
    padding: 1.5rem;
  }

  .blog-post-footer {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .blog-modal-header {
    padding: 1rem 1.5rem;
  }

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

  .blog-modal-subtitle {
    font-size: 1rem;
  }

  .blog-modal-body {
    padding: 1rem;
  }

  .blog-posts {
    gap: 0.5rem;
    padding: 0;
  }

  .blog-post-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    gap: 1rem;
  }

  .blog-post-footer {
    justify-content: space-between;
    width: 100%;
  }

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

  .blog-post-modal {
    padding: 1rem;
  }

  .blog-post-modal-content {
    max-height: 95vh;
  }

  .blog-post-modal-header {
    padding: 1rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .blog-post-header-content {
    width: 100%;
  }

  .blog-post-modal-title {
    font-size: 1.5rem;
    margin: 0.25rem 0 0.5rem 0;
  }

  .blog-post-modal-header .blog-post-meta {
    margin-bottom: 0.25rem;
  }

  .blog-post-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
  }

  .blog-post-modal-body {
    padding: 1.5rem;
    max-height: calc(95vh - 120px);
  }

  .blog-post-content h1 {
    font-size: 2rem;
  }

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

  .blog-post-content h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .blog-modal-header {
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .blog-modal-title {
    font-size: 1.25rem;
  }

  .blog-modal-subtitle {
    font-size: 0.9rem;
  }

  .blog-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }

  .blog-post-header {
    padding: 1rem;
  }

  .blog-post-footer {
    padding: 0.75rem 1rem;
  }

  .blog-post-title {
    font-size: 1.25rem;
  }

  .blog-post-modal-header {
    padding: 0.75rem 1rem;
  }

  .blog-post-modal-title {
    font-size: 1.25rem;
    margin: 0.1rem 0 0.25rem 0;
  }

  .blog-post-modal-header .blog-post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.1rem;
  }

  .blog-post-modal-header .blog-post-date,
  .blog-post-modal-header .blog-post-category {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }

  .blog-post-modal-header .blog-post-author {
    font-size: 0.75rem;
  }

  .blog-post-modal-header .author-avatar {
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
  }

  .blog-post-modal-close {
    top: 0.75rem;
    right: 1rem;
    width: 36px;
    height: 36px;
  }

  .blog-post-modal-body {
    padding: 1rem;
  }

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

/* Advanced Blog Modal Graphic Hero Styles */
.blog-post-modal .graphic-hero {
  width: 100%;
  height: 280px;
  background: linear-gradient(
    135deg,
    var(--accent-primary) 0%,
    var(--accent-secondary) 30%,
    var(--accent-primary) 60%,
    var(--accent-secondary) 100%
  );
  background-size: 400% 400%;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: blogGradientShift 8s ease-in-out infinite;
}

/* Animated gradient background for blog modal */
@keyframes blogGradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Floating particles background for blog modal */
.blog-post-modal .graphic-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 255, 255, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 60%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 60% 30%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 50%
    );
  animation: blogParticleFloat 12s ease-in-out infinite;
}

@keyframes blogParticleFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-15px) rotate(180deg);
    opacity: 1;
  }
}

/* Advanced shimmer overlay for blog modal */
.blog-post-modal .graphic-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 30%,
    rgba(255, 255, 255, 0.5) 50%,
    rgba(255, 255, 255, 0.3) 70%,
    transparent 100%
  );
  animation: blogShimmerSweep 4s ease-in-out infinite;
}

@keyframes blogShimmerSweep {
  0% {
    left: -100%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* Advanced hero icon for blog modal */
.blog-post-modal .hero-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  z-index: 2;
  position: relative;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4))
    drop-shadow(0 0 25px rgba(255, 255, 255, 0.4));
  animation: blogIconFloat 5s ease-in-out infinite;
  background: linear-gradient(45deg, #fff, #f8f9fa, #fff, #e9ecef, #fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 300% 300%;
  animation: blogIconFloat 5s ease-in-out infinite,
    blogIconShine 4s ease-in-out infinite;
}

@keyframes blogIconFloat {
  0%,
  100% {
    transform: translateY(0px) scale(1) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) scale(1.05) rotate(2deg);
  }
  50% {
    transform: translateY(-5px) scale(1.1) rotate(0deg);
  }
  75% {
    transform: translateY(-12px) scale(1.05) rotate(-2deg);
  }
}

@keyframes blogIconShine {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Advanced hero title for blog modal */
.blog-post-modal .hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  text-align: center;
  z-index: 2;
  position: relative;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #f8f9fa 25%,
    #ffffff 50%,
    #e9ecef 75%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  text-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  animation: blogTitleGlow 3s ease-in-out infinite alternate,
    blogTitleShine 6s ease-in-out infinite;
}

@keyframes blogTitleGlow {
  0% {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
  }
  100% {
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.8));
  }
}

@keyframes blogTitleShine {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Advanced hero subtitle for blog modal */
.blog-post-modal .hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  margin-bottom: 2rem;
  z-index: 2;
  position: relative;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
  font-weight: 600;
  letter-spacing: 1px;
  animation: blogSubtitleFloat 4s ease-in-out infinite;
}

@keyframes blogSubtitleFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Advanced decoration for blog modal */
.blog-post-modal .hero-decoration {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 2;
  position: relative;
}

.blog-post-modal .decoration-line {
  width: 50px;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.8) 25%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0.8) 75%,
    transparent 100%
  );
  border-radius: 3px;
  animation: blogLinePulse 3s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

@keyframes blogLinePulse {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 0.7;
  }
  50% {
    transform: scaleX(1.3);
    opacity: 1;
  }
}

.blog-post-modal .decoration-dots {
  display: flex;
  gap: 0.6rem;
}

.blog-post-modal .decoration-dots span {
  width: 12px;
  height: 12px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.7) 60%,
    rgba(255, 255, 255, 0.3) 100%
  );
  border-radius: 50%;
  display: block;
  animation: blogDotBounce 2s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
}

.blog-post-modal .decoration-dots span:nth-child(1) {
  animation-delay: 0s;
}
.blog-post-modal .decoration-dots span:nth-child(2) {
  animation-delay: 0.3s;
}
.blog-post-modal .decoration-dots span:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes blogDotBounce {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.3);
  }
}

/* Dark theme adjustments for blog modal graphic hero */
[data-theme="dark"] .blog-post-modal .graphic-hero {
  background: linear-gradient(
    135deg,
    #1a1a2e 0%,
    #16213e 30%,
    #0f1419 60%,
    #1a1a2e 100%
  );
  background-size: 400% 400%;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .blog-post-modal .hero-title {
  background: linear-gradient(
    135deg,
    #e0e0e0 0%,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #d0d0d0 75%,
    #e0e0e0 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .blog-post-modal .hero-subtitle {
  color: rgba(224, 224, 224, 0.9);
}

[data-theme="dark"] .blog-post-modal .decoration-line {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(224, 224, 224, 0.6) 25%,
    rgba(224, 224, 224, 0.8) 50%,
    rgba(224, 224, 224, 0.6) 75%,
    transparent 100%
  );
  box-shadow: 0 0 15px rgba(224, 224, 224, 0.4);
}

[data-theme="dark"] .blog-post-modal .decoration-dots span {
  background: radial-gradient(
    circle,
    rgba(224, 224, 224, 0.9) 0%,
    rgba(224, 224, 224, 0.6) 60%,
    rgba(224, 224, 224, 0.2) 100%
  );
  box-shadow: 0 0 15px rgba(224, 224, 224, 0.5);
}

/* Responsive advanced blog modal graphic hero */
@media (max-width: 768px) {
  .blog-post-modal .graphic-hero {
    height: 220px;
  }

  .blog-post-modal .hero-icon {
    font-size: 4rem;
    margin-bottom: 0.75rem;
  }

  .blog-post-modal .hero-title {
    font-size: 2.2rem;
  }

  .blog-post-modal .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .blog-post-modal .decoration-line {
    width: 40px;
    height: 3px;
  }

  .blog-post-modal .decoration-dots span {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .blog-post-modal .graphic-hero {
    height: 180px;
  }

  .blog-post-modal .hero-icon {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
  }

  .blog-post-modal .hero-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }

  .blog-post-modal .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .blog-post-modal .decoration-line {
    width: 35px;
  }

  .blog-post-modal .decoration-dots {
    gap: 0.4rem;
  }

  .blog-post-modal .decoration-dots span {
    width: 8px;
    height: 8px;
  }
}
