/* Blog Page Styles */

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #2c1810 0%, #8b4513 50%, #d2691e 100%);
  padding: 8rem 0 4rem;
  margin-top: 80px;
  color: white;
  position: relative;
  overflow: hidden;
}

.page-header::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"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.page-header-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.page-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb span {
  opacity: 0.6;
}

/* Blog Section */
.blog-section {
  padding: 4rem 0;
  background: #fafbfc;
}

.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Main Content */
.blog-main {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Blog Post Card */
.blog-post {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.post-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

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

.blog-post:hover .post-image img {
  transform: scale(1.05);
}

.post-category-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #8b4513, #d2691e);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.post-content {
  padding: 2rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #7f8c8d;
  flex-wrap: wrap;
}

.post-title {
  margin-bottom: 1rem;
}

.post-title a {
  color: #2c3e50;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.post-title a:hover {
  color: #8b4513;
}

.post-excerpt {
  color: #5a6c7d;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.post-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: rgba(139, 69, 19, 0.1);
  color: #8b4513;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tag:hover {
  background: #8b4513;
  color: white;
}

.read-more {
  color: #8b4513;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: #d2691e;
}

/* Single Post */
.single-post {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.single-post .post-header {
  padding: 2rem 2rem 1rem;
}

.single-post .post-meta {
  justify-content: center;
  margin-bottom: 1.5rem;
}

.single-post .post-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #2c3e50;
  text-align: center;
  line-height: 1.3;
  margin: 0;
}

.single-post .post-image {
  height: 400px;
  margin-bottom: 2rem;
}

.single-post .post-content {
  padding: 0 2rem 2rem;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 1.5rem;
  border-radius: 15px;
  margin-bottom: 2rem;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.3rem;
}

.author-bio {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin: 0;
}

.post-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #2c3e50;
}

.post-text h3 {
  color: #8b4513;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
}

.post-text h4 {
  color: #2c3e50;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 1.5rem 0 0.8rem;
}

.post-text p {
  margin-bottom: 1.2rem;
}

.single-post .post-tags {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 15px;
  margin: 2rem 0;
}

.single-post .post-tags h4 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.tags-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.post-navigation {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.back-to-blog {
  display: inline-block;
  background: linear-gradient(135deg, #8b4513, #d2691e);
  color: white;
  padding: 1rem 2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.back-to-blog:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-link:hover,
.page-link.active {
  background: linear-gradient(135deg, #8b4513, #d2691e);
  color: white;
  border-color: transparent;
}

.page-link.next {
  width: auto;
  padding: 0 1rem;
}

.page-dots {
  color: #7f8c8d;
  font-weight: 500;
}

/* Sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.widget-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  position: relative;
}

.widget-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(135deg, #8b4513, #d2691e);
  border-radius: 2px;
}

/* Search Form */
.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-input {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #8b4513;
}

.search-btn {
  background: linear-gradient(135deg, #8b4513, #d2691e);
  color: white;
  border: none;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

/* Categories */
.categories-list {
  list-style: none;
}

.categories-list li {
  margin-bottom: 0.8rem;
}

.categories-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #5a6c7d;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.categories-list a:hover {
  color: #8b4513;
  padding-right: 0.5rem;
}

.categories-list span {
  background: #f8f9fa;
  color: #7f8c8d;
  padding: 0.2rem 0.5rem;
  border-radius: 10px;
  font-size: 0.8rem;
}

/* Recent Posts */
.recent-posts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recent-post {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.recent-post-image {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.recent-post-title {
  margin-bottom: 0.3rem;
}

.recent-post-title a {
  color: #2c3e50;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.recent-post-title a:hover {
  color: #8b4513;
}

.recent-post-date {
  color: #7f8c8d;
  font-size: 0.8rem;
}

/* Tags Cloud */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Newsletter Widget */
.newsletter-widget {
  background: linear-gradient(135deg, #8b4513, #d2691e);
  color: white;
}

.newsletter-widget .widget-title {
  color: white;
}

.newsletter-widget .widget-title::after {
  background: rgba(255, 255, 255, 0.3);
}

.newsletter-widget p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.newsletter-input {
  padding: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 0.9rem;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
}

.newsletter-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.8rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }

  .blog-main {
    padding: 1rem;
  }

  .post-content {
    padding: 1.5rem;
  }

  .single-post .post-content {
    padding: 0 1.5rem 1.5rem;
  }

  .single-post .post-header {
    padding: 1.5rem 1.5rem 1rem;
  }

  .single-post .post-title {
    font-size: 2rem;
  }

  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .post-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .sidebar-widget {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .blog-section {
    padding: 2rem 0;
  }

  .post-image {
    height: 200px;
  }

  .single-post .post-image {
    height: 250px;
  }

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

  .pagination {
    flex-wrap: wrap;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}
