/* Blog Cards Section */
.blog-cards {
  padding: 4rem 2rem;
  background-color: var(--back-ground-color-off-white);
}

.blog-cards .container {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-cards .label {
  font-size: 1.1rem;
  color: #666;
  text-transform: uppercase;
  font-weight: 500;
  text-align: center;
}

.blog-cards .heading {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark-green);
}

.card-content p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.read-more {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--green-color);
  color: var(--white-color);
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.read-more:hover {
  background: var(--primary-color);
}

/* Blog Post Hero Section */
.blog-post-hero {
  text-align: center;
  padding: 2rem 0;
  background-color: var(--back-ground-color-off-white);
}

.blog-post-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.blog-post-hero h3 {
  font-size: 1.2rem;
  color: #666;
}

/* Blog Post Content Section */
.blog-post-content {
  display: flex;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.blog-post-main {
  flex: 2;
}

.blog-image {
  width: 100%;
  height: 40%;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.post-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: #666;
  font-size: 0.9rem;
}

.post-meta .category {
  font-weight: bold;
  color: var(--primary-color);
}

.content {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* Share Buttons */
.share-buttons {
  margin-top: 2rem;
  text-align: center;
}

.share-buttons h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.share-buttons .fa {
  font-size: 1.5rem;
  margin: 0 0.5rem;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.share-buttons .fa:hover {
  color: var(--secondary-color);
}

/* Sidebar Section */
.sidebar {
  flex: 1;
  max-width: 300px;
}

.sidebar h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.sidebar-blog {
  margin-bottom: 1.5rem;
}

.sidebar-blog img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.sidebar-blog h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.sidebar-blog p {
  font-size: 0.9rem;
  color: #666;
}

.blog-top{
  padding: 130px 0 80px 0;
  text-align: center;
  height: auto; /* Adjust height dynamically */
  background-color: #e9e9e971;
  padding-left: 1rem; /* Prevent horizontal overflow */
  padding-right: 1rem; /* Prevent horizontal overflow */
  box-sizing: border-box; /* Include padding in the width calculation */
}
.blog-top h1{
  font-size: clamp(2.5rem, 8vw, 3.5rem); /* Dynamically scale between 2.5rem and 8.5rem */
  color: #333;
  margin-bottom: 10px;
  font-family: "Radio Canada";
  word-wrap: break-word; /* Ensure text doesn't overflow */
}

.blog-top h3 {
  font-size: clamp(1rem, 3vw, 2rem); /* Adjust subtitle size */
  color: #666;
  margin: 0 auto;
  max-width: 800px; /* Limit width to ensure readability */
  line-height: 1.6;
  padding-left: 1rem; /* For smaller screens */
  padding-right: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .blog-cards .heading {
    font-size: 2rem;
  }

  .card img {
    height: 150px;
  }

  .card-content {
    padding: 1rem;
  }

  .blog-post-content {
    flex-direction: column;
  }

  .sidebar {
    max-width: 100%;
  }
}

@media (max-width: 500px) {
  .blog-cards .heading {
    font-size: 1.8rem;
  }

  .card img {
    height: 120px;
  }

  .card-content h3 {
    font-size: 1.2rem;
  }

  .card-content p {
    font-size: 0.8rem;
  }
}