/* Blog Styles */

/* Blog Header */
.blog-header {
  background-color: white;
  color: rgb(0, 0, 0);
  padding: 40px 20px;
}

.header {
  display: flex;
  justify-content: space-between;
}

.blog-page-container {
  padding: 50px;
  background-color: white;
}

.blog-container {
  max-width: 1400px;
  margin: 0 auto;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 25px var(--shadow-light);
}

.blog-header-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.blog-header h1 {
  font-size: 46px;
  font-weight: 700;
  margin-bottom: 16px;
  color: rgb(0, 0, 0);
}

.blog-heading {
  font-size: 24px;
  font-weight: 700;
  color: rgb(0, 0, 0);
  margin-bottom: 20px;
  text-align: center;
}

.blog-content-container .blog-content .blog-intro {
  font-size: 16px;
  color: black;
  font-weight: 400;
  line-height: 1.5;
}

.blog-content-container .blog-content h2 {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: rgb(0, 0, 0);
}

.blog-meta {
  font-size: 16px;
  color: rgba(0, 0, 0, 0.8);
}

.blog-date,
.blog-author {
  margin: 0 5px;
}

/* Blog Content Layout */
.blog-content-container,
.blog-listing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.strong {
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
}

.blog-intro-paragraph {
  font-size: 16px;
  line-height: 1.2;
  color: #f3f4f6;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.blog-sidebar {
  width: 240px;
}

.sidebar-section {
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 15px 25px var(--shadow-light);
}

/* Blog Listing Styles */
.blog-filter {
  margin-bottom: 30px;
}

.filter-section h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-option {
  padding: 6px 12px;
  border-radius: 16px;
  background-color: var(--bg-off-white);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 16px;
  transition: all 0.2s ease;
}

.filter-option:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.filter-option.active {
  background-color: var(--primary-color);
  color: white;
}

/* Featured Post */
.featured-post {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px var(--shadow-light);
  margin-bottom: 30px;
}

.featured-image {
  height: 250px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-content {
  padding: 24px;
}

.post-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.post-category {
  color: var(--primary-color);
  font-weight: 500;
}

.featured-content h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.featured-content h2 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.featured-content h2 a:hover {
  color: var(--primary-color);
}

.featured-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: all 0.2s ease;
}

.read-more:hover {
  text-decoration: underline;
}

/* Blog Post Grid */
.blog-post-grid {
  /* display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 30px; */
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
}

.blog-post-card {
  background-color: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px var(--shadow-light);
  display: flex;
  margin-bottom: 30px;
  flex-direction: column;
  height: 100%;
  padding: 12px;
  border: rgba(255, 255, 255, 0.9) 2px solid;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

/* .post-image {
    height: 180px;
    overflow: hidden;
}

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

.blog-post-card:hover {
  transform: translateY(-5px); /* move slightly up */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); /* bottom shadow */
}

.post-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.post-content h3 a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-content h3 a:hover {
  color: var(--primary-color);
}

.post-content p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 30px;
}

.pagination-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-light);
  border-radius: 4px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.blog-next {
  width: 60px;
  padding: 3px;
}

.pagination-item:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.pagination-item.active {
  background-color: var(--primary-color);
  color: white;
}

.pagination-ellipsis {
  display: flex;
  align-items: center;
  padding: 0 8px;
  color: var(--text-secondary);
}

/* Blog Search */
.blog-search {
  display: flex;
  gap: 8px;
}

.blog-search input {
  flex-grow: 1;
  padding: 0 20px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
  border-radius: 4px;
}

.blog-search button {
  padding: 0 16px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.blog-search button:hover {
  background-color: var(--primary-dark);
}

.newsletter-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-container h2 {
  color: black;
  font-size: 28px;
  margin-bottom: 12px;
}

.newsletter-container p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 14px;
  padding-top: 20px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 6px 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
}

.newsletter-form button {
  padding: 12px 24px;
}

/* Blog Content Styling */
.blog-featured-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
}

.blog-intro {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 24px;
}

.blog-content h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 30px 0 16px;
  color: var(--text-primary);
}

.blog-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 2px 0 10px;
  color: var(--text-primary);
}

.blog-content p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
  color: var(--text-primary);
}

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

.blog-content li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.blog-cta {
  background-color: var(--primary-light);
  border-radius: 8px;
  padding: 24px;
  margin-top: 40px;
  text-align: center;
}

.blog-cta h3 {
  color: var(--primary-color);
  margin-top: 0;
}

.blog-cta p {
  margin-bottom: 20px;
}

/* Blog Sidebar Styling */
.sidebar-section {
  background-color: var(--bg-light);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 4px var(--shadow-light);
}

.sidebar-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.sidebar-posts,
.sidebar-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-posts li,
.sidebar-categories li {
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.sidebar-posts li:last-child,
.sidebar-categories li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-posts a,
.sidebar-categories a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  display: block;
  transition: color 0.2s ease;
}

.sidebar-posts a:hover,
.sidebar-categories a:hover {
  color: var(--primary-color);
}

.sidebar-cta {
  background-color: var(--primary-light);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}

.sidebar-cta h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 12px;
}

.sidebar-cta p {
  font-size: 14px;
  margin-bottom: 16px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .blog-header {
    padding: 20px 10px;
  }
  .blog-content-container {
    flex-direction: column;
    padding: 10px;
  }

  .blog-page-container {
    padding: 5px;
  }

  .blog-sidebar {
    width: 100%;
  }

  .blog-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .blog-content h2 {
    font-size: 22px;
  }

  .blog-content h3 {
    font-size: 18px;
  }

}
