/* blog-styles.css */

/* Ensure 3 columns layout */
.masonry.columns-3 .masonry-item {
    width: calc(33.333% - 20px); /* 3 columns with spacing */
    margin: 10px; /* Spacing between columns */
    box-sizing: border-box; /* Ensure padding is included in width */
}

/* Blog card container */
.blog-2.blog-card {
    display: flex;
    flex-direction: column; /* Stack image and text box vertically */
    height: 100%;
    background: #fff; /* Background color for the blog card */
    border: 1px solid #ddd; /* Border for the blog card */
    border-radius: 8px; /* Rounded corners for the entire card */
    overflow: hidden; /* Ensure content stays within the card */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition for hover effect */
}

/* Image box styling */
.blog-2.blog-card .blog-image1 {
    width: 100%; /* Ensure image box takes full width */
    overflow: hidden; /* Ensure image stays within the box */
    border-top-left-radius: 8px; /* Border radius for the top-left corner */
    border-top-right-radius: 8px; /* Border radius for the top-right corner */
}

.blog-2.blog-card .blog-image1 img {
    width: 100%; /* Ensure image takes full width */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below the image */
}

/* Date styling */
.blog-2.blog-card .blog-image .date {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0); /* Semi-transparent background */
    color: #fff; /* White text */
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
}

/* Text box styling */
.blog-2.blog-card .blog-content {
    width: 100%; /* Ensure text box takes full width */
    padding: 20px; /* Padding inside the text box */
    background: #fff; /* Background color for the text box */
    border-bottom-left-radius: 8px; /* Border radius for the bottom-left corner */
    border-bottom-right-radius: 8px; /* Border radius for the bottom-right corner */
    box-sizing: border-box; /* Ensure padding is included in width */
}

.blog-2.blog-card .blog-description {
    text-align: center; /* Center-align text */
}

.blog-2.blog-card .blog-description a {
    color: #333; /* Title color */
    text-decoration: none; /* Remove underline */
    font-size: 18px; /* Title font size */
    font-weight: bold; /* Title font weight */
    margin-bottom: 10px; /* Spacing below the title */
    display: block; /* Ensure the title takes full width */
}

.blog-2.blog-card .blog-description a:hover {
    color: #007bff; /* Title hover color */
}

.blog-2.blog-card .blog-description p {
    color: #666; /* Content text color */
    font-size: 14px; /* Content font size */
    line-height: 1.6; /* Line height for better readability */
    margin-bottom: 15px; /* Spacing below the content */
}

.blog-2.blog-card .read-more {
    color: #007bff; /* Read more link color */
    text-decoration: none; /* Remove underline */
    font-size: 14px; /* Read more font size */
    font-weight: bold; /* Read more font weight */
    display: inline-block; /* Ensure it behaves like a block */
    margin-top: 10px; /* Spacing above the read more link */
}

.blog-2.blog-card .read-more:hover {
    text-decoration: underline; /* Underline on hover */
}

/* Interactive hover effect */
.blog-2.blog-card:hover {
    transform: translateY(-5px); /* Lift the card slightly */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Add shadow for depth */
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .masonry.columns-3 .masonry-item {
        width: calc(50% - 20px); /* 2 columns on tablets */
    }
}

@media (max-width: 768px) {
    .masonry.columns-3 .masonry-item {
        width: 100%; /* 1 column on mobile */
        margin: 10px 0; /* Adjust margin for single column */
    }
}

/* Centered and smaller image container */
.centered-image {
    text-align: center; /* Center the image horizontally */
    margin: 0 auto; /* Center the container itself */
    max-width: 60%; /* Make the container smaller (adjust as needed) */
  }
  
  .centered-image img {
    max-width: 100%; /* Ensure the image scales within the container */
    height: auto; /* Maintain aspect ratio */
    display: inline-block; /* Ensure the image respects text-align center */
  }

/* General paragraph styling */
.blog-section p {
    font-size: 2.5rem; /* Large font size for all paragraphs */
    line-height: 1.8; /* Increased line height for readability */
    color: #333; /* Darker text color for readability */
    margin-bottom: 2rem; /* Spacing between paragraphs */
  }
  
  /* Styling for headings (previously <h2>, <h3>, etc.) */
  .blog-section p.heading-style {
    font-size: 3rem; /* Even larger font size for headings */
    font-weight: bold; /* Bold for emphasis */
    color: #222; /* Darker color for headings */
    margin-top: 3rem; /* More spacing above headings */
    margin-bottom: 2rem; /* More spacing below headings */
  }
  
  /* Styling for lists */
  .blog-section ul {
    font-size: 2.5rem; /* Match paragraph font size */
    line-height: 1.8; /* Increased line height for readability */
    color: #333; /* Darker text color for readability */
    margin-bottom: 2rem; /* Spacing below lists */
  }
  
  .blog-section ul li {
    margin-bottom: 1rem; /* Spacing between list items */
  }

  @media (max-width: 768px) {
    .blog-section p {
      font-size: 1.8rem; /* Smaller font size for paragraphs on mobile */
    }
  
    .blog-section h3 {
      font-size: 3.6rem; /* Smaller font size for H3 on mobile (1.8rem * 2) */
    }
  }
  
  /* Style for the "Contact us" link */
  .large-link {
    font-size: 2.5rem; /* Even larger font size for the link */
    font-weight: bold; /* Bold for emphasis */
    color: #007bff; /* Blue color for the link (adjust as needed) */
    text-decoration: none; /* Remove underline */
  }
  
  .large-link:hover {
    text-decoration: underline; /* Add underline on hover */
  }

  @media (max-width: 768px) {
    .large-link {
      font-size: 2rem; /* Smaller font size for the link on mobile */
    }
  }

  .image-and-posts-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 2rem;
  }
  
  .custom-image.centered-image {
    text-align: center;
    max-width: 100%;
  }
  
  .custom-image.centered-image img {
    max-width: 100%;
    height: auto;
    display: inline-block;
  }
  
  

  .facebook-posts-container {
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
    text-align: center;
}

.facebook-posts-container iframe {
    width: 100%;
    height: 500px; /* Adjust height as needed */
    border: none;
    overflow: hidden;
}

/*--- APRIL Update ---*/

.masonry-item {
  width: calc(33.333% - 30px); /* 3 columns with gutter */
  margin-bottom: 30px;
}

.blog-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.blog-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-description {
  flex: 1;
}