/* Blog Header */
.blog-header {
  position: relative;
  height: 60vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white-color);
  background-color: var(--secondary-color);
  overflow: hidden;
  margin-top: 80px;
}

.blog-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(49, 129, 97, 0.8) 0%, rgba(20, 46, 56, 0.8) 100%);
  z-index: 1;
}

.header-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.glitch-text {
  font-family: var(--font-primary);
  font-size: 4rem;
  font-weight: 900;
  text-transform: uppercase;
  position: relative;
  color: var(--white-color);
  letter-spacing: 5px;
  animation: glitch 5s infinite;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.glitch-text::before {
  color: #0ff;
  z-index: -1;
  animation: glitch-effect 3s infinite;
}

.glitch-text::after {
  color: #f0f;
  z-index: -2;
  animation: glitch-effect 2s infinite;
}

@keyframes glitch-effect {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-5px, 5px);
  }
  40% {
    transform: translate(-5px, -5px);
  }
  60% {
    transform: translate(5px, 5px);
  }
  80% {
    transform: translate(5px, -5px);
  }
  100% {
    transform: translate(0);
  }
}

.subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Enhanced Search Styles */
.search-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 2rem auto 0;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 1rem 4rem 1rem 1.5rem;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

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

.search-input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
  outline: none;
}

.search-button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-button:hover {
  background: var(--primary-color-dark);
  transform: translateY(-50%) scale(1.05);
}

.search-clear-btn {
  position: absolute;
  right: 55px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-clear-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.search-results-info {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  text-align: center;
  display: none;
}

.search-results-info.success {
  background: rgba(49, 129, 97, 0.2);
  color: #fff;
}

.search-results-info.error {
  background: rgba(220, 53, 69, 0.2);
  color: #fff;
}

.search-input.searching {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.wave-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 1;
}

.wave-container svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
}

/* Featured Post Section */
.featured-post-section {
  padding: 80px 0;
  background-color: var(--background-color);
}

.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background-color: var(--white-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.featured-post:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.featured-image {
  position: relative;
  height: 100%;
}

.image-wrapper {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-post:hover .featured-image img {
  transform: scale(1.05);
}

.category-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  z-index: 1;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.featured-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--accent-color);
  color: var(--white-color);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.featured-badge i {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.featured-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

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

.post-title {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--text-color);
  line-height: 1.4;
  transition: color 0.3s ease;
}

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

.post-excerpt {
  color: var(--text-light);
  margin-bottom: 25px;
  line-height: 1.6;
  flex-grow: 1;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(49, 129, 97, 0.2);
}

.read-more-btn:hover {
  background-color: var(--secondary-color);
  transform: translateX(5px);
}

.read-more-btn i {
  transition: transform 0.3s ease;
}

.read-more-btn:hover i {
  transform: translateX(5px);
}

.social-share {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-share span {
  color: var(--text-light);
  font-size: 0.9rem;
}

.share-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--light-green);
  color: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.share-icon:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-3px);
}

/* Blog Categories */
.blog-categories-section {
  padding: 20px 0;
  background-color: var(--background-color);
}

.categories-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.category-btn {
  background-color: var(--white-color);
  color: var(--text-color);
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.category-btn:hover,
.category-btn.active {
  background-color: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(49, 129, 97, 0.2);
}

/* Blog Posts Grid */
.blog-posts-section {
  padding: 40px 0 80px;
  background-color: var(--background-color);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.blog-card {
  background-color: var(--white-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-hover-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(49, 129, 97, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
}

.blog-card:hover .card-hover-effect {
  opacity: 1;
}

.card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .card-image img {
  transform: scale(1.1);
}

.card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.read-more {
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.read-more i {
  transition: transform 0.3s ease;
}

.read-more:hover {
  color: var(--secondary-color);
}

.read-more:hover i {
  transform: translateX(5px);
}

.post-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.post-author span {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Load More Button */
.load-more-container {
  text-align: center;
  margin-top: 50px;
}

.load-more-btn {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.load-more-btn:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(49, 129, 97, 0.2);
}

.load-more-btn i {
  display: none;
}

.load-more-btn.loading span {
  display: none;
}

.load-more-btn.loading i {
  display: inline-block;
}

/* Newsletter Section */
.newsletter-section {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* View All Button */
.view-all-container {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-outline:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: var(--primary-color);
  transition: all 0.3s ease;
  z-index: -1;
}

.btn-outline:hover {
  color: white;
}

.btn-outline:hover:before {
  width: 100%;
}

.btn-outline i {
  transition: transform 0.3s ease;
}

.btn-outline:hover i {
  transform: translateX(5px);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 992px) {
  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-image {
    height: 400px;
  }

  .glitch-text {
    font-size: 3.5rem;
  }
}

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

  .glitch-text {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .post-meta {
    flex-direction: column;
    gap: 5px;
  }

  .post-footer {
    flex-direction: column;
    gap: 15px;
  }

  .social-share {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .featured-content {
    padding: 25px;
  }

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

  .categories-filter {
    flex-direction: column;
    align-items: center;
  }

  .category-btn {
    width: 100%;
    text-align: center;
  }
}

