/* Blog-specific styles */

/* Blog Header */
.blog-header {
  background: linear-gradient(130deg, #7ecad7, #35bac9);
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
}
 h2, h3, h4, h5, h6, p {
  font-family: "Poppins", sans-serif;
  color: #1a1a1a;
}

.blog-hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.blog-hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  animation: fadeInDown 0.8s ease-out;
}

.blog-hero-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Featured Post Section */
.featured-post-section {
  padding: 60px 20px;
  background: #f8f9fa;
}

.featured-post {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.featured-post-content {
  position: relative;
}

.post-badge {
  display: inline-block;
  background: linear-gradient(135deg, #7ecad7, #35bac9);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.featured-post h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
  line-height: 1.3;
}

.featured-post p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
}

.post-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  font-size: 0.95rem;
  color: #888;
  flex-wrap: wrap;
}

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

.post-meta i {
  color: #35bac9;
}

.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #7ecad7, #35bac9);
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(53, 186, 201, 0.3);
}

.featured-post-image {
  position: relative;
}

.featured-post-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center ;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Blog Search Section */
.blog-search-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.search-container {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.blog-search-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  transition: border-color 0.3s ease;
}

.blog-search-input:focus {
  outline: none;
  border-color: #35bac9;
}

.search-btn {
  padding: 12px 20px;
  background: linear-gradient(135deg, #7ecad7, #35bac9);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(53, 186, 201, 0.3);
}

/* Filter Tags */
.filter-tags {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 20px;
  background: white;
  border: 2px solid #ddd;
  border-radius: 20px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: #555;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: #35bac9;
  color: #35bac9;
}

.filter-btn.active {
  background: linear-gradient(135deg, #7ecad7, #35bac9);
  border-color: transparent;
  color: white;
}

/* Blog Posts Grid */
.blog-posts-grid {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

/* Blog Card */
.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-card.hidden {
  display: none;
}

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

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

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

.category-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(53, 186, 201, 0.95);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.blog-card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
}

.blog-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.blog-card:hover h3 {
  color: #35bac9;
}

.blog-card p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
  flex-grow: 1;
}

.read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #35bac9;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.read-link:hover {
  gap: 12px;
  color: #7ecad7;
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, #7ecad7, #35bac9);
  padding: 60px 20px;
  text-align: center;
  color: white;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.newsletter-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 16px;
  border: none;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
}

.newsletter-form input::placeholder {
  color: #999;
}

.newsletter-form input:focus {
  outline: none;
  background: white;
}

.newsletter-form .btn-primary {
  padding: 14px 32px;
  background: white;
  color: #35bac9;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
}

.newsletter-form .btn-primary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .featured-post {
    grid-template-columns: 1fr;
    padding: 25px;
    gap: 30px;
  }

  .featured-post h2 {
    font-size: 1.8rem;
  }

  .blog-hero-content h1 {
    font-size: 2.2rem;
  }

  .blog-posts-grid {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }
  .search-container{
    display: flex;
  }

  .filter-tags {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .search-container {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .blog-hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

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

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

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

  .blog-card h3 {
    font-size: 1.2rem;
  }

  .filter-tags {
    gap: 6px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}
