/* Blog-specific styles */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

/* Blog Hero Section */
.blog-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0081a7 0%, #00afb9 100%);
  overflow: hidden;
}

.blog-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("./image/blog-hero-bg.jpg") center / cover;
  opacity: 0.2;
  z-index: 1;
}

.blog-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
}

.blog-hero-title {
  font-family: "Poppins", sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-hero-subtitle {
  font-family: "Inter", sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.9;
}

/* Featured Post Section */
.featured-post {
  padding: 80px 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 40px 0;
  border-radius: 20px;
}

.featured-post-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.featured-post-image {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 129, 167, 0.2);
}

.featured-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-post-image:hover .featured-image {
  transform: scale(1.05);
}

.featured-category {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #0081a7, #00afb9);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.featured-post-text {
  padding: 20px;
}

.featured-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #666;
}

.featured-title {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.3;
}

.featured-excerpt {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 25px;
}

.featured-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.tag {
  background: rgba(0, 129, 167, 0.1);
  color: #0081a7;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Blog Posts Grid */
.blog-posts {
  padding: 80px 0;
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.blog-post-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-post-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 129, 167, 0.2);
}

.blog-post-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-post-card:hover .blog-post-img {
  transform: scale(1.1);
}

.blog-post-category {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
}

.blog-category-purple {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
}
.blog-category-green {
  background: linear-gradient(135deg, #10b981, #059669);
}
.blog-category-cyan {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}
.blog-category-red {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}
.blog-category-yellow {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.blog-category-blue {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.blog-post-content {
  padding: 25px;
}

.blog-post-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: #666;
}

.blog-post-title {
  font-family: "Poppins", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
}

.blog-post-excerpt {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 20px;
}

.blog-post-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tag-small {
  background: rgba(0, 129, 167, 0.1);
  color: #0081a7;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.btn-blog {
  background: linear-gradient(135deg, #0081a7, #00afb9);
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-blog:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 129, 167, 0.3);
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, #0081a7, #00afb9);
  border-radius: 20px;
  padding: 50px;
  text-align: center;
  margin-top: 60px;
  color: white;
}

.newsletter-title {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.newsletter-description {
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  outline: none;
}

.newsletter-btn {
  background: white;
  color: #0081a7;
  padding: 15px 30px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .blog-hero-title {
    font-size: 2.5rem;
  }

  .blog-hero-subtitle {
    font-size: 1rem;
  }

  .featured-post-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .blog-posts-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-section {
    padding: 30px 20px;
  }
}

@media (max-width: 480px) {
  .blog-hero {
    min-height: 50vh;
  }

  .blog-hero-title {
    font-size: 2rem;
  }

  .featured-post {
    padding: 40px 0;
    margin: 20px 0;
  }

  .blog-posts {
    padding: 40px 0;
  }

  .featured-title {
    font-size: 1.5rem;
  }

  .newsletter-title {
    font-size: 1.5rem;
  }
}
