@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&family=Quicksand:wght@300..700&display=swap');

*{
  font-family: "Quicksand", sans-serif;
  background:#ebe5fb;
}

/* General Reset */
body, html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

header {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar a {
  text-decoration: none;
  color: darkgreen;
  margin: 0 10px;
  font-size: 20px;
  align-items: right;
}

.navbar img.logo {
  height: 25px;
}
  
nav, .nav-links {
    display: flex;
    
}

nav {
    justify-content: space-around;
    align-items: right;
    height: 17vh;
}

.nav-links {
    gap: 2rem;
    list-style: none;
    font-size: 1.5rem;
}

.heading-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 20px;
}

.header-img {
  width: 400px;
  height: 300px;
  
}

.blog-intro {
  max-width: 600px;
  text-align: center;
}

.highlight {
  color: #4A148C; /* Deep purple */
  font-size: 2rem;
  margin-bottom: 10px;
}

.description {
  color: #555;
  font-size: 1rem;
  line-height: 1.5;
}

/* Blog Post Styles */
/* Blog Post Styles */
.container {
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.individualblogpost {
  
    margin-left: 30px;  /* Add margin to the left */
    margin-right: 30px; /* Add margin to the right */
    font-size: 1rem;
  
  display: flex;
  flex-direction: column; /* Stack image on top and description below */
  margin: 10px;
  width: calc(25% - 20px); /* 4 posts per row, adjusting for margin */
  box-sizing: border-box; /* Include padding and border in width calculation */
  border: 1px solid #ccc;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.blogpostimg {
  width: 100%; /* Make image take full width */
  height: auto; /* Maintain aspect ratio */
  object-fit: cover;
  border-radius: 5px;
}

.right {
  padding: 20px 40px; /* Top-bottom: 15px, Left-right: 40px */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.right h2 {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.right p {
  font-size: 1rem;
  line-height: 1.6;
}


/* Responsive Design */
@media (max-width: 992px) {
  .individualblogpost {
    width: calc(33.33% - 20px); /* 3 posts per row on medium screens */
  }
}

@media (max-width: 768px) {
  .individualblogpost {
    width: calc(50% - 20px); /* 2 posts per row on small screens */
  }
}

@media (max-width: 480px) {
  .individualblogpost {
    width: 100%; /* Full width on very small screens */
  }
}

.individualblogpost a {
  text-decoration: none !important; /* Ensure underline is removed */
  font-weight: bold; /* Make text bold */
  color: inherit; /* Use the parent element's color */
}

.individualblogpost a:hover {
  color: #007BFF; /* Optional: Add a hover color for better interaction */
}

