/* Additional Blog-specific Styles */
.blog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-header {
  text-align: center;
  margin: 10px 0;
}

.blog-header h1 {
  font-size: 2.5rem;
  color: var(--navy);
  margin-bottom: 15px;
}

.blog-header p {
  color: var(--light-slate);
  max-width: 700px;
  margin: 0 auto;
}
.blog-container1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 20px;
}

/* New Layout Structure */
.blog-layout {
  display: flex;
  gap: 30px;
  /* margin-bottom: 40px; */
}

.blog-main {
  flex: 0 0 60%;
  /* display: grid; */
  /* background-color: brown; */
  /* grid-template-columns: 1fr 1fr; */
  gap: 30px;
}

.blog-sidebar {
  flex: 0 0 40%;
}

/* Original Blog Grid (kept for reference/compatibility) */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 10px;
}
.blog-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 350px;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.blog-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.blog-content {
  padding: 25px;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--light-slate);
}

.blog-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--navy);
}

.blog-excerpt {
  color: var(--light-slate);
  margin-bottom: 20px;
  line-height: 1.6;
}

.read-more {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--primary-light);
}

.pagination {
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pagination a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 30px;
  width: 30px;
  border-radius: 50%;
}

.pagination a:hover {
  background-color: var(--primary);
  color: var(--white);
}

.blog-tag {
  display: inline-block;
  background: #e0e7ff;
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 8px;
  margin-bottom: 8px;
}

/* Sidebar Styles */
.sidebar-widget {
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.sidebar-widget h3 {
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

.newsletter-widget {
  padding-bottom: 30px;
}

.newsletter-image {
  height: 200px;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 8px;
  color: #999;
  font-weight: bold;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.newsletter-form button {
  padding: 12px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.newsletter-form button:hover {
  background-color: var(--primary-dark);
}

.popular-post {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.popular-post:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.popular-post-image {
  flex: 0 0 100px;
  height: 80px;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #999;
  font-weight: bold;
}

.popular-post-content h4 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 5px;
}

.post-date {
  font-size: 0.8rem;
  color: var(--light-slate);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Single Blog Post Styles */
.single-blog {
  background: white;
  border-radius: 10px;
  padding: 40px;
  margin-bottom: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.single-blog img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px;
}

.single-blog h1 {
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 20px;
}

.single-blog .blog-meta {
  margin-bottom: 25px;
}

.single-blog-content p {
  margin-bottom: 20px;
  line-height: 1.8;
  color: #4b5563;
}

.single-blog-content h2 {
  color: var(--navy);
  margin: 30px 0 15px;
}

@media (max-width: 768px) {
  .blog-layout {
    flex-direction: column;
  }

  .blog-main,
  .blog-sidebar {
    flex: 0 0 100%;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .single-blog {
    padding: 25px;
  }

  .single-blog img {
    height: 250px;
  }
  .blog-container1{
    display: block;
  }
}
