/* Blog Page Styles */

.blog-page-main {
  min-height: 100vh;
  background-color: #f8f9fa;
}

.blog-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 60px;
}

/* Blog Header Section */
.blog-header-section {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 40px;
  padding: 60px 0;
  background: linear-gradient(135deg, #7d53de 0%, #9b6dff 100%);
  color: white;
  border-radius: 15px;
  margin: 0 -20px 40px -20px;
}

.blog-header-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-page-title {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: white;
}

.blog-page-description {
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Blog Filters Section */
.blog-filters-section {
  grid-column: 1 / -1;
  margin-bottom: 40px;
}

.blog-filters-container {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.blog-search-form {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.blog-search-input {
  width: 100%;
  padding: 12px 50px 12px 20px;
  border: 2px solid #e1e5e9;
  border-radius: 25px;
  font-size: 16px;
  background: white;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-search-input:focus {
  outline: none;
  border-color: #7d53de;
  box-shadow: 0 0 0 3px rgba(125, 83, 222, 0.1);
}

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

.blog-search-button:hover {
  background: #6a47c7;
}

.blog-category-filter {
  min-width: 200px;
}

.blog-category-select {
  width: 100%;
  padding: 12px 20px;
  border: 2px solid #e1e5e9;
  border-radius: 25px;
  font-size: 16px;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.blog-category-select:focus {
  outline: none;
  border-color: #7d53de;
}

/* Blog Posts Section */
.blog-posts-section {
  grid-column: 1;
}

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

.blog-post-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.blog-post-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.blog-post-image {
  position: relative;
  overflow: hidden;
}

.blog-post-thumbnail {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-post-card:hover .blog-post-thumbnail {
  transform: scale(1.05);
}

.blog-post-content {
  padding: 25px;
}

.blog-post-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 14px;
  color: #666;
}

.blog-post-date {
  color: #7d53de;
  font-weight: 500;
}

.blog-post-category {
  background: #f0f0f0;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
}

.blog-post-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 15px 0;
  color: #333;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-post-excerpt {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-post-read-more {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7d53de;
  font-weight: 500;
  font-size: 14px;
  transition: gap 0.3s ease;
}

.blog-post-card:hover .blog-post-read-more {
  gap: 12px;
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  margin: 0 5px;
  border: 2px solid #e1e5e9;
  border-radius: 50%;
  text-decoration: none;
  color: #666;
  font-weight: 500;
  transition: all 0.3s ease;
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
  background: #7d53de;
  border-color: #7d53de;
  color: white;
}

.blog-pagination .prev,
.blog-pagination .next {
  width: auto;
  padding: 0 20px;
  border-radius: 25px;
  gap: 8px;
}

/* No Posts Found */
.blog-no-posts {
  text-align: center;
  padding: 80px 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.blog-no-posts-content h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 15px;
}

.blog-no-posts-content p {
  color: #666;
  margin-bottom: 30px;
  font-size: 16px;
}

.blog-search-suggestions {
  text-align: left;
  max-width: 400px;
  margin: 0 auto 30px auto;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border-left: 4px solid #7d53de;
}

.blog-search-suggestions h3 {
  font-size: 16px;
  color: #333;
  margin: 0 0 15px 0;
}

.blog-search-suggestions ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-search-suggestions li {
  color: #666;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.blog-search-suggestions li:before {
  content: "•";
  color: #7d53de;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Blog Sidebar */
.blog-sidebar {
  grid-column: 2;
  align-self: start;
  position: sticky;
  top: 20px;
}

.blog-sidebar-widget {
  background: white;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.blog-sidebar-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0 0 20px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #f0f0f0;
}

/* Popular Posts Widget */
.blog-popular-posts {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.blog-popular-post {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 10px;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.blog-popular-post:hover {
  background: #f8f9fa;
}

.blog-popular-post-image {
  flex-shrink: 0;
  width: 60px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
}

.blog-popular-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-popular-post-content h4 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 5px 0;
  color: #333;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-popular-post-date {
  font-size: 12px;
  color: #666;
}

/* Categories Widget */
.blog-categories-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.blog-categories-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  text-decoration: none;
  color: #666;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.blog-categories-list a:hover {
  background: #f8f9fa;
  color: #7d53de;
}

.blog-category-count {
  font-size: 12px;
  color: #999;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 10px;
}

/* Newsletter Widget */
.blog-newsletter-widget {
  background: linear-gradient(135deg, #7d53de 0%, #9b6dff 100%);
  color: white;
}

.blog-newsletter-widget .blog-sidebar-title {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.blog-newsletter-widget p {
  margin-bottom: 20px;
  opacity: 0.9;
  font-size: 14px;
}

.blog-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-newsletter-input {
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.9);
}

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

.blog-newsletter-button {
  padding: 12px 20px;
  background: white;
  color: #7d53de;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.blog-newsletter-button:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
}

/* Single Post Styles */
.single-post-main {
  min-height: 100vh;
  background-color: #f8f9fa;
  padding: 40px 0 60px 0;
}

.single-post-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.single-post-article {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
}

.single-post-header {
  padding: 40px 40px 30px 40px;
}

.single-post-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
  flex-wrap: wrap;
}

.single-post-date {
  color: #7d53de;
  font-weight: 500;
}

.single-post-category {
  background: #f0f0f0;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
}

.single-post-author {
  color: #666;
}

.single-post-title {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 30px 0;
  color: #333;
  line-height: 1.3;
}

.single-post-featured-image {
  margin: 0 -40px 30px -40px;
}

.single-post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.single-post-content {
  padding: 0 40px 40px 40px;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
  color: #333;
  margin-top: 30px;
  margin-bottom: 15px;
}

.single-post-content h2 {
  font-size: 28px;
  font-weight: 600;
}

.single-post-content h3 {
  font-size: 24px;
  font-weight: 600;
}

.single-post-content h4 {
  font-size: 20px;
  font-weight: 600;
}

.single-post-content p {
  margin-bottom: 20px;
}

.single-post-content ul,
.single-post-content ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.single-post-content li {
  margin-bottom: 8px;
}

.single-post-content blockquote {
  border-left: 4px solid #7d53de;
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: #666;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 0 8px 8px 0;
}

.single-post-content a {
  color: #7d53de;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.single-post-content a:hover {
  border-bottom-color: #7d53de;
}

.single-post-footer {
  padding: 30px 40px 40px 40px;
  border-top: 1px solid #f0f0f0;
}

.single-post-tags {
  margin-bottom: 30px;
}

.single-post-tags h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
}

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

.single-post-tag {
  background: #f0f0f0;
  color: #666;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.single-post-tag:hover {
  background: #7d53de;
  color: white;
}

.single-post-share h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
}

.single-post-share-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.share-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 25px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.share-button:hover {
  transform: translateY(-2px);
}

.share-facebook {
  background: #1877f2;
}

.share-twitter {
  background: #1da1f2;
}

.share-linkedin {
  background: #0077b5;
}

/* Post Navigation */
.single-post-navigation {
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.single-post-nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.single-post-nav-link {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: inherit;
  padding: 20px;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.single-post-nav-link:hover {
  background: #f8f9fa;
}

.single-post-nav-content {
  flex: 1;
}

.single-post-nav-label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 5px;
}

.single-post-nav-title {
  display: block;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
}

.single-post-nav-next .single-post-nav-link {
  text-align: right;
  flex-direction: row-reverse;
}

/* Related Posts */
.single-post-related {
  background: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.single-post-related-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 30px 0;
  color: #333;
}

.single-post-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.single-post-related-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.single-post-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.single-post-related-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.single-post-related-image {
  height: 150px;
  overflow: hidden;
}

.single-post-related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.single-post-related-card:hover .single-post-related-image img {
  transform: scale(1.05);
}

.single-post-related-content {
  padding: 20px;
}

.single-post-related-content h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 10px 0;
  color: #333;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.single-post-related-date {
  font-size: 12px;
  color: #666;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .blog-page-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .blog-sidebar {
    grid-column: 1;
    position: static;
  }
  
  .blog-posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
  }
}

@media screen and (max-width: 768px) {
  .blog-page-container {
    padding: 0 15px;
    padding-top: 20px;
    padding-bottom: 40px;
  }
  
  .blog-header-section {
    padding: 40px 0;
    margin: 0 -15px 30px -15px;
  }
  
  .blog-page-title {
    font-size: 36px;
  }
  
  .blog-page-description {
    font-size: 16px;
  }
  
  .blog-filters-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .blog-search-form {
    min-width: auto;
  }
  
  .blog-posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .blog-post-content {
    padding: 20px;
  }
  
  .blog-post-title {
    font-size: 18px;
  }
  
  .blog-sidebar-widget {
    padding: 20px;
  }
  
  /* Single Post Mobile Styles */
  .single-post-main {
    padding: 20px 0 40px 0;
  }
  
  .single-post-container {
    padding: 0 15px;
  }
  
  .single-post-header {
    padding: 30px 20px 20px 20px;
  }
  
  .single-post-title {
    font-size: 28px;
  }
  
  .single-post-featured-image {
    margin: 0 -20px 20px -20px;
  }
  
  .single-post-content {
    padding: 0 20px 30px 20px;
  }
  
  .single-post-footer {
    padding: 20px 20px 30px 20px;
  }
  
  .single-post-navigation {
    padding: 20px;
  }
  
  .single-post-nav-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .single-post-related {
    padding: 30px 20px;
  }
  
  .single-post-related-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media screen and (max-width: 480px) {
  .blog-page-title {
    font-size: 28px;
  }
  
  .blog-page-description {
    font-size: 14px;
  }
  
  .blog-post-content {
    padding: 15px;
  }
  
  .blog-post-title {
    font-size: 16px;
  }
  
  .blog-sidebar-widget {
    padding: 15px;
  }
  
  /* Single Post Mobile Styles */
  .single-post-title {
    font-size: 24px;
  }
  
  .single-post-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .single-post-share-buttons {
    flex-direction: column;
  }
  
  .share-button {
    justify-content: center;
  }
} 