/* Blog Archive Styles */
/* Post Title */
#content .page-header h1 {
  display: none;
}

/* Container */
#primary .blog-archive .container {
  max-width: 100%;
  width: 100%;
}

/* Hero Section */
.hero-section {
  background-color: var(--color-primary);
  padding: 4rem 0;
  color: var(--color-white);
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.category-label,
.tag-label,
.author-label,
.date-label {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.archive-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.archive-description {
  font-size: 1.125rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Entry Header */
#primary .hentry header {
  background-color: transparent;
  box-shadow: none;
}

/* Post Title */
.hentry .entry-header h1 {
  box-shadow: none !important;
  background-color: #ffffff;
}

/* Container */
#primary .container {
  padding-right: 0px;
  padding-left: 0px;
  margin-left: 0px;
  margin-right: 0px;
  max-width: 100%;
}

/* Entry Content */
.page-wrapper #primary .container .hentry .entry-content {
  width: 100% !important;
}

/* Entry Content */
#primary .hentry .entry-content {
  margin-left: 0px;
  margin-right: 0px;
  max-width: 100%;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Blog Card */
.blog-card {
  background: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

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

/* Blog Card Image */
.blog-card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

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

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

/* Blog Category */
.blog-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-primary);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.blog-category a {
  color: var(--color-white);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Blog Card Content */
.blog-card-content {
  padding: 1.5rem;
}

/* Blog Meta */
.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.blog-date,
.blog-author,
.blog-comments {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Blog Title */
.blog-title {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  line-height: 1.4;
}

.blog-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-title a:hover {
  color: var(--color-primary);
}

/* Blog Excerpt */
.blog-excerpt {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Blog Read More */
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: gap 0.3s ease;
}

.blog-read-more:hover {
  gap: 0.75rem;
}

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

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 4px;
  background: var(--color-white);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.blog-pagination .page-numbers.current {
  background: var(--color-primary);
  color: var(--color-white);
}

.blog-pagination .page-numbers:hover:not(.current) {
  background: var(--color-gray-100);
}

.pagination-arrow {
  font-size: 1.25rem;
}

/* No Posts */
.no-posts {
  text-align: center;
  padding: 4rem 0;
}

.no-posts h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.no-posts p {
  color: var(--color-text-light);
}

/* CTA Section */
.cta-section {
  background-color: #f8f9fa;
  padding: 4rem 0;
  margin-top: 3rem;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.cta-content p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

.cta-content .btn {
  background-color: #273b35;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.cta-content .btn:hover {
  background-color: #1a2a24;
}

/* Content Wrapper and Container */
.page-wrapper {
  transform: translatex(-3px) translatey(0px);
}

/* Single Post Styles */
.single-post {
  margin-bottom: 3rem;
}

/* Post Hero */
.post-hero {
  background: linear-gradient(to right, #f8f9fa, #e9ecef);
  padding: 4rem 0;
  margin-bottom: 3rem;
}

.post-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.post-category {
  display: inline-block;
  background-color: #273b35;
  color: #fff;
  padding: 5px 15px;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.post-category a {
  color: #fff;
  text-decoration: none;
}

.post-meta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: #666;
  margin-top: 1rem;
}

/* Featured Image */
.post-featured-image {
  margin-bottom: 3rem;
}

.featured-image-container {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

/* Post Content */
.post-content {
  margin-bottom: 3rem;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.entry-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

.entry-content p {
  margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 2rem 0 1rem;
  color: #333;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 2rem 0;
}

.entry-content blockquote {
  border-left: 4px solid #273b35;
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: #555;
}

/* Post Tags */
.post-tags {
  margin: 3rem 0;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.post-tags h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #333;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tags-list li {
  margin: 0;
}

.tags-list a {
  display: inline-block;
  background-color: #f8f9fa;
  color: #333;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.tags-list a:hover {
  background-color: #273b35;
  color: #fff;
}

/* Author Box */
.author-box {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 3rem 0;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
}

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

.author-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

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

/* Comments */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.comments-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #333;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.comment-body {
  display: flex;
  gap: 1.5rem;
}

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

.comment-author {
  font-weight: 500;
  color: #333;
}

.comment-metadata {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.comment-content {
  color: #333;
  line-height: 1.6;
}

.comment-respond {
  margin-top: 3rem;
}

.comment-reply-title {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.comment-form {
  display: grid;
  gap: 1.5rem;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
  margin: 0;
}

.comment-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}

.comment-form input[type='text'],
.comment-form input[type='email'],
.comment-form input[type='url'],
.comment-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.comment-form input[type='text']:focus,
.comment-form input[type='email']:focus,
.comment-form input[type='url']:focus,
.comment-form textarea:focus {
  border-color: #273b35;
  outline: none;
}

.comment-form textarea {
  min-height: 150px;
}

.form-submit {
  margin-top: 1rem;
}

.submit {
  background-color: #273b35;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit:hover {
  background-color: #1a2a24;
}

/* Related Posts */
.related-posts {
  margin: 3rem 0;
  padding: 3rem 0;
  background-color: #f8f9fa;
}

.related-posts h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #333;
}

/* 768px and larger screen sizes */
@media (min-width: 768px) {
  /* Entry Content */
  #primary .hentry .entry-content {
    padding-right: 0px;
    padding-left: 0px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .post-content .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
  }

  .content-wrapper {
    padding: 0;
  }
}

/* 1025px and larger screen sizes */
@media (min-width: 1025px) {
  /* Menu text */
  #menu-menu a .menu-text {
    font-size: 14px;
  }

  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0;
  }

  .archive-title {
    font-size: 2rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .blog-card-content {
    padding: 1.25rem;
  }
}

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

  .archive-title {
    font-size: 1.75rem;
  }

  .blog-meta {
    flex-wrap: wrap;
  }
}
