@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora&display=swap');

/* Blog Topics Navigation */
.blog-navbar {
  background: none !important;
  background-color: transparent !important;
  padding: 10px 0;
  text-align: center;
  margin-bottom: 20px;
  border: none;
}

/* Style the list items within the navbar */
.blog-navbar ul {
  list-style: none; /* Remove default list styling */
  padding: 0;
  margin: 0;
  background-color: transparent;
}

/* Style the individual links in the navbar */
.blog-navbar li {
  display: inline; /* Make the list items display in a horizontal line */
  margin: 0 25px; /* Space between items */
}

/* Style the anchor (link) elements inside navbar */
.blog-navbar a {
  color: #000000; /* White text */
  text-decoration: none; /* Remove underline */
  font-size: 14px; /* Adjust font size */
  font-weight: bold;
  padding: 5px 15px;  /* Add some padding for clickable area */
  border-radius: 5px; /* Rounded corners */
  transition: background-color 0.3s ease, color 0.3s ease;
  font-family: 'Lora', serif;
}

/* Add hover effect to links */
.blog-navbar a:hover {
  color: #F6C6D7; /* Gold color for text on hover */
  background-color: #fff5f8; /* Dark maroon background on hover */
}

/* Active Link (for selected topics) */
.blog-navbar a.active {
  background-color: #fff1dd; /* Gold background for active topic */
  color: #fff5f8; /* Dark maroon text color for active topic */
}

/* Blog Post Container */
.blog-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.blog-post {
  margin-bottom: 40px;
}

/* Blog Post Title */
.blog-post-title a {
  color: #333;
  font-size: 24px;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.blog-post-title a:hover {
  color: #F6C6D7; /* Change color on hover */
}

/* Blog Post Description */
.blog-post-description {
  color: #555;
  font-size: 16px;
  margin: 10px 0;
}

/* Blog Post Date */
.blog-post-date {
  font-size: 14px;
  color: #888;
}

.blog-post-date span {
  font-weight: bold;
}

/* Blog Post Content Layout */
.blog-post {
  display: flex;
  align-items: center; /* Align the image and text vertically */
  gap: 20px; /* Space between the image and the content */
  background-color: #fdf8fa;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Image Container */
.blog-post-image img {
  width: 150px; /* Set the image width */
  height: 150px; /* Set the image height */
  object-fit: cover; /* Ensures the image covers the area without distortion */
  border-radius: 8px; /* Optional: rounded corners */
}

/* Content Area of Blog Post */
.blog-post-content {
  flex-grow: 1; /* Makes the content area take up remaining space */
}

/* Footer Styles */
footer {
  background-color: #F6C6D7;
  color: #000000;
  text-align: center;
  padding: 10px;
  margin-top: 30px;
  font-family: 'Lora', serif;
  font-weight: bold;
}

/* Pagination Controls */
/* Style for the pagination container */
#pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Style for individual page buttons */
#pagination button {
  background-color: #F6C6D7;  /* Green background for buttons */
  border: none;
  color: rgb(0, 0, 0);
  padding: 10px 15px;
  margin: 0 5px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 12px;
  border-radius: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;  /* Smooth transition effects */
  font-family: 'Lora', serif;
}

/* Hover effect for buttons */
#pagination button:hover {
  background-color: #ff8bb3;  /* Darker green on hover */
  transform: translateY(-2px);  /* Lift the button slightly when hovered */
}

/* Active button (the current page) */
#pagination button.active {
  background-color: #F6C6D7;  /* Tomato color for active button */
  font-weight: bold;  /* Make the active button bold */
  cursor: default;  /* Disable clicking on the active button */
}

/* Disable button (for previous/next at the first/last page) */
#pagination button:disabled {
  background-color: #F6C6D7;  /* Light gray background */
  cursor: not-allowed;  /* Show not-allowed cursor */
}

/* Style for previous and next buttons */
#pagination button.prev, #pagination button.next {
  background-color: #F6C6D7;  /* Blue background for "previous" and "next" */
}

#pagination button.prev:hover, #pagination button.next:hover {
  background-color: #F6C6D7;  /* Darker blue on hover */
}
/* Sort Controls (Newest / Oldest Buttons) */
#sort-controls {
  display: flex;
  gap: 12px;
  margin-top:10px;
  margin-bottom:20px;
  font-size: 16px;
  justify-content: center;
}

.sort-option {
  font-family: 'Lora', serif;
    font-weight: bold;

  background: none;        /* remove box */
  border: none;            /* remove box */
  padding: 0;              /* remove box padding */
  font-size: 16px;
  cursor: pointer;
  color: #333;             /* default text color */
  transition: color 0.2s ease;
}

.sort-option:hover {
  color: #F6C6D7;
  background: none !important;  /* IMPORTANT: stops box from appearing */

}
#blog-container {
  opacity: 1;
  transition: opacity 0.4s ease;   /* smooth fade */
}

#blog-container.fade-out {
  opacity: 0;
}

