/* Blog-specific styles */

.blog-header {
  background: linear-gradient(135deg, var(--primary-black) 0%, var(--dark-gray) 50%, var(--primary-black) 100%);
  background-image: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 50px,
      rgba(0, 166, 81, 0.03) 50px,
      rgba(0, 166, 81, 0.03) 100px
    );
  color: var(--white);
  padding: 8rem 2rem 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-top: 0;
}

.blog-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 166, 81, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.blog-header .container {
  position: relative;
  z-index: 1;
}

.blog-header h1 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-size: 4rem;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 166, 81, 0.5), 0 4px 20px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.05em;
  animation: fadeInUp 0.8s ease-out;
}

.blog-header p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.3rem;
  font-weight: 400;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-listing {
  padding: 6rem 0;
  background: var(--bg-grey-dark);
  position: relative;
}

.blog-post-full {
  background: #ffffff;
  border: 2px solid var(--medium-gray);
  border-left: 4px solid var(--accent-green);
  border-radius: 12px;
  padding: 3.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 166, 81, 0.1);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.blog-post-full::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-green) 0%, #0d7a3d 100%);
  transition: width 0.4s ease;
}

.blog-post-full:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--accent-green), 0 0 30px rgba(0, 166, 81, 0.3);
  border-color: var(--accent-green);
}

.blog-post-full:hover::before {
  width: 6px;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--light-gray);
  position: relative;
}

.blog-post-date {
  background: linear-gradient(135deg, var(--accent-green) 0%, #0d7a3d 100%);
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 166, 81, 0.4);
  display: inline-block;
  position: relative;
  z-index: 1;
}

.blog-post-title {
  color: var(--primary-black);
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.blog-post-content {
  color: var(--text-dark);
  line-height: 1.9;
  font-size: 1.15rem;
}

.blog-post-content p {
  margin-bottom: 1.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  background: rgba(0, 166, 81, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  margin-bottom: 3rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 166, 81, 0.3);
}

.back-link:hover {
  gap: 1rem;
  background: rgba(0, 166, 81, 0.3);
  border-color: var(--accent-green);
  color: var(--accent-green);
  transform: translateX(-5px);
}

.back-link::before {
  content: '←';
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

.back-link:hover::before {
  transform: translateX(-8px);
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: rgba(255, 255, 255, 0.8);
  background: var(--bg-grey);
  border-radius: 12px;
  border: 2px solid var(--medium-gray);
}

.empty-state h3 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 4rem;
  padding: 2rem 0;
  flex-wrap: wrap;
}

.pagination-btn {
  background: #ffffff;
  color: var(--primary-black);
  border: 2px solid var(--medium-gray);
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 44px;
  text-align: center;
  font-family: 'Inter', sans-serif;
}

.pagination-btn:hover:not(.disabled):not(.active) {
  background: var(--accent-green);
  color: #ffffff;
  border-color: var(--accent-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 166, 81, 0.3);
}

.pagination-btn.active {
  background: linear-gradient(135deg, var(--accent-green) 0%, #0d7a3d 100%);
  color: #ffffff;
  border-color: var(--accent-green);
  box-shadow: 0 4px 12px rgba(0, 166, 81, 0.4);
  cursor: default;
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--light-gray);
  color: var(--medium-gray);
}

.pagination-ellipsis {
  color: var(--text-dark);
  padding: 0 0.5rem;
  font-weight: 600;
  font-size: 1rem;
}

/* Responsive adjustments for blog page */
@media (max-width: 768px) {
  .blog-header {
    padding: 5rem 1.5rem;
  }

  .blog-header h1 {
    font-size: 2.5rem;
  }

  .blog-header p {
    font-size: 1.1rem;
  }

  .blog-listing {
    padding: 4rem 0;
  }

  .blog-post-full {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }

  .blog-post-title {
    font-size: 1.5rem;
  }

  .blog-post-content {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .blog-header {
    padding: 4rem 1rem;
  }

  .blog-header h1 {
    font-size: 2rem;
  }

  .blog-post-full {
    padding: 1.5rem 1rem;
  }

  .blog-post-date {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }

  .pagination {
    gap: 0.4rem;
    margin-top: 3rem;
    padding: 1.5rem 0;
  }

  .pagination-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    min-width: 40px;
  }
}

