/* Blog Page Styles */

/* Blog Hero Section */
.blog-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 140px 20px 60px;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/bg4.jpg') center/cover;
  opacity: 0.1;
  z-index: 0;
}

.blog-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.blog-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.blog-category {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 15px;
  backdrop-filter: blur(10px);
}

.blog-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.blog-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  font-size: 1rem;
  opacity: 0.95;
}

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

/* Blog Content Section */
.blog-content-section {
  padding: 80px 20px;
  background: white;
}

.blog-container {
  max-width: 900px;
  margin: 0 auto;
}

.featured-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  margin-bottom: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.blog-body {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #333;
}

.blog-body h2 {
  font-size: 2rem;
  color: #333;
  margin-top: 40px;
  margin-bottom: 20px;
}

.blog-body h3 {
  font-size: 1.5rem;
  color: #444;
  margin-top: 30px;
  margin-bottom: 15px;
}

.blog-body p {
  margin-bottom: 20px;
  text-align: justify;
}

.blog-body ul,
.blog-body ol {
  margin: 20px 0;
  padding-left: 30px;
}

.blog-body li {
  margin-bottom: 10px;
}

.blog-body strong {
  color: #667eea;
  font-weight: 600;
}

.blog-body blockquote {
  background: #f9f9f9;
  border-left: 5px solid #667eea;
  padding: 20px 30px;
  margin: 30px 0;
  font-style: italic;
  color: #555;
}

.blog-body img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 30px 0;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  border-left: 4px solid #667eea;
  padding: 25px;
  margin: 30px 0;
  border-radius: 10px;
}

.highlight-box h3 {
  margin-top: 0;
  color: #667eea;
}

/* Tags Section */
.blog-tags {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
}

.blog-tags h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #333;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: #f0f0f0;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #555;
  transition: all 0.3s ease;
  text-decoration: none;
}

.tag:hover {
  background: #667eea;
  color: white;
}

/* Author Section */
.author-section {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 15px;
  margin-top: 50px;
  display: flex;
  gap: 25px;
  align-items: center;
}

.author-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-info h3 {
  margin: 0 0 10px 0;
  font-size: 1.3rem;
  color: #333;
}

.author-info p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

/* Related Blogs Section */
.related-blogs {
  padding: 80px 20px;
  background: #f9f9f9;
}

.related-blogs h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 50px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.related-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.related-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.related-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.related-content {
  padding: 25px;
}

.related-date {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 10px;
  display: block;
}

.related-content h3 {
  font-size: 1.2rem;
  color: #333;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.related-content p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* CTA Section */
.blog-cta {
  padding: 80px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
}

.blog-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.blog-cta p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
}

.cta-primary {
  background: white;
  color: #667eea;
  padding: 15px 40px;
  border: none;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-secondary {
  background: transparent;
  color: white;
  padding: 15px 40px;
  border: 2px solid white;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.cta-secondary:hover {
  background: white;
  color: #667eea;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .blog-hero h1 {
    font-size: 2.2rem;
  }

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

  .blog-body {
    font-size: 1rem;
  }

  .blog-body h2 {
    font-size: 1.6rem;
  }

  .blog-body h3 {
    font-size: 1.3rem;
  }

  .author-section {
    flex-direction: column;
    text-align: center;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-blogs h2 {
    font-size: 2rem;
  }

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

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-primary,
  .cta-secondary {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .blog-hero {
    padding: 120px 15px 40px;
  }

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

  .blog-content-section {
    padding: 60px 15px;
  }

  .blog-body {
    font-size: 0.95rem;
  }
}
