/* ================= BLOG PAGE STYLES ================= */

/* Blog Hero Section */
.blog-hero {
  background: linear-gradient(135deg, #000000 0%, #0a1a3a 100%);
  color: white;
  padding: 100px 5% 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 60px;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(0, 123, 255, 0.1)"/></svg>');
  background-size: cover;
  opacity: 0.3;
}

.blog-hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.blog-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #00bfff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.blog-hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* Blog Container */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
  margin-bottom: 80px;
}

/* Main Blog Content */
.blog-main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Blog Categories */
.blog-categories {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.category-btn {
  padding: 10px 20px;
  background: #f5f7fa;
  border: 2px solid transparent;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-btn i {
  font-size: 16px;
}

.category-btn:hover {
  background: #007bff;
  color: white;
  transform: translateY(-2px);
}

.category-btn.active {
  background: linear-gradient(135deg, #007bff, #00bfff);
  color: white;
  border-color: #007bff;
}

/* Blog Posts Grid */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

/* Blog Card */
.blog-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 123, 255, 0.15);
}

.blog-card-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.1);
}

.blog-category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: linear-gradient(135deg, #007bff, #00bfff);
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.blog-card-content {
  padding: 25px;
}

.blog-card-date {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}

.blog-card-date i {
  color: #007bff;
}

.blog-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.4;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff, #00bfff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 18px;
}

.author-info h4 {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.author-info span {
  font-size: 13px;
  color: #666;
}

/* Featured Post */
.featured-post {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 123, 255, 0.1);
}

.featured-post .blog-card-image {
  height: 400px;
  border-radius: 0;
}

.featured-post .blog-card-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-post .blog-category-badge {
  top: 20px;
  left: 20px;
  font-size: 14px;
  padding: 8px 20px;
}

.featured-post h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.featured-post p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
}

/* Read More Button */
.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #007bff, #00bfff);
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  width: fit-content;
}

.read-more-btn:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

/* Blog Sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #007bff;
  position: relative;
}

.sidebar-widget h3::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(135deg, #007bff, #00bfff);
}

/* Search Widget */
.search-widget form {
  display: flex;
  gap: 10px;
}

.search-widget input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #eef2f7;
  border-radius: 25px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-widget input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.search-widget button {
  padding: 12px 20px;
  background: linear-gradient(135deg, #007bff, #00bfff);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-widget button:hover {
  transform: scale(1.05);
}

/* Popular Posts */
.popular-posts {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.popular-post-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.popular-post-item:hover {
  background: #f8fafc;
  transform: translateX(5px);
}

.popular-post-image {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.popular-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.popular-post-item:hover .popular-post-image img {
  transform: scale(1.1);
}

.popular-post-content h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-post-content span {
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Newsletter Widget */
.newsletter-widget {
  background: linear-gradient(135deg, #000000 0%, #0a1a3a 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><circle cx="50" cy="50" r="40" fill="rgba(0, 123, 255, 0.1)"/></svg>');
  background-size: cover;
}

.newsletter-widget h3 {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.3);
}

.newsletter-widget p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.newsletter-form input {
  padding: 12px 15px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 14px;
  transition: all 0.3s ease;
}

.newsletter-form input:focus {
  outline: none;
  border-color: #007bff;
  background: rgba(255, 255, 255, 0.15);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-form button {
  padding: 12px 20px;
  background: linear-gradient(135deg, #007bff, #00bfff);
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

/* Tags Widget */
.tags-widget {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 8px 15px;
  background: #f5f7fa;
  border-radius: 20px;
  font-size: 13px;
  color: #333;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tag:hover {
  background: linear-gradient(135deg, #007bff, #00bfff);
  color: white;
  transform: translateY(-2px);
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}

.pagination-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f5f7fa;
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination-btn:hover {
  background: linear-gradient(135deg, #007bff, #00bfff);
  color: white;
  transform: translateY(-2px);
}

.pagination-btn.active {
  background: linear-gradient(135deg, #007bff, #00bfff);
  color: white;
}

.pagination-dots {
  color: #666;
  font-weight: 600;
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(135deg, #000000 0%, #0a1a3a 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
  border-radius: 20px;
  margin: 80px 20px;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(0, 123, 255, 0.1)"/><path d="M0,0 L0,100 L100,100 Z" fill="rgba(255, 0, 255, 0.1)"/></svg>');
  background-size: cover;
  opacity: 0.5;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.newsletter-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #00bfff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.newsletter-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  line-height: 1.6;
}

.newsletter-large-form {
  display: flex;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-large-form input {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 16px;
  transition: all 0.3s ease;
}

.newsletter-large-form input:focus {
  outline: none;
  border-color: #007bff;
  background: rgba(255, 255, 255, 0.15);
}

.newsletter-large-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.newsletter-large-form button {
  padding: 15px 30px;
  background: linear-gradient(135deg, #007bff, #00bfff);
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.newsletter-large-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

/* Single Blog Post Page Styles */
.blog-post-header {
  background: linear-gradient(135deg, #000000 0%, #0a1a3a 100%);
  color: white;
  padding: 80px 5% 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-post-header-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.blog-post-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.blog-post-meta span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.blog-post-meta i {
  color: #00bfff;
}

.blog-post-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 30px;
  line-height: 1.2;
}

.blog-post-image {
  margin: 40px auto;
  max-width: 800px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blog-post-image img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-post-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

.blog-post-content h2 {
  font-size: 2rem;
  color: #333;
  margin: 40px 0 20px;
  position: relative;
  padding-left: 20px;
}

.blog-post-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, #007bff, #00bfff);
  border-radius: 2px;
}

.blog-post-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #444;
}

.blog-post-content blockquote {
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  border-left: 4px solid #007bff;
  padding: 30px;
  margin: 40px 0;
  border-radius: 10px;
  font-style: italic;
  font-size: 1.2rem;
  color: #333;
}

.blog-post-content blockquote::before {
  content: '"';
  font-size: 3rem;
  color: #007bff;
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 10px;
}

.blog-post-content ul,
.blog-post-content ol {
  margin: 20px 0 20px 30px;
}

.blog-post-content li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 40px 0;
  padding: 20px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.blog-post-tags a {
  padding: 8px 15px;
  background: #f5f7fa;
  border-radius: 20px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
}

.blog-post-tags a:hover {
  background: linear-gradient(135deg, #007bff, #00bfff);
  color: white;
}

/* Author Bio */
.author-bio {
  background: #f8fafc;
  padding: 30px;
  border-radius: 15px;
  margin: 40px 0;
  display: flex;
  gap: 20px;
  align-items: center;
}

.author-bio-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff, #00bfff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 32px;
  font-weight: 600;
  flex-shrink: 0;
}

.author-bio-content h4 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #333;
}

.author-bio-content p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Related Posts */
.related-posts {
  margin: 60px 0;
}

.related-posts h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: #333;
  position: relative;
  padding-bottom: 10px;
}

.related-posts h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, #007bff, #00bfff);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .blog-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .featured-post {
    grid-template-columns: 1fr;
  }
  
  .blog-hero h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .blog-hero {
    padding: 80px 20px 60px;
  }
  
  .blog-hero h1 {
    font-size: 2.2rem;
  }
  
  .blog-posts-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-post .blog-card-image {
    height: 300px;
  }
  
  .blog-post-header h1 {
    font-size: 2.2rem;
  }
  
  .newsletter-large-form {
    flex-direction: column;
  }
  
  .blog-post-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .author-bio {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .blog-hero h1 {
    font-size: 1.8rem;
  }
  
  .category-btn {
    padding: 8px 15px;
    font-size: 13px;
  }
  
  .blog-card-content {
    padding: 20px;
  }
  
  .sidebar-widget {
    padding: 20px;
  }
  
  .newsletter-section {
    margin: 40px 10px;
    padding: 40px 20px;
  }
}