* {
  box-sizing: border-box;
}

.banner {
  position: relative;
  width: 100%;
  height: 400px; /* Adjust height as needed */
  overflow: hidden;
}

.banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white; /* Change text color if needed */
  z-index: 1; /* Ensure content is above background image */
}

.search-bar {
  padding: 15px;
  border-radius: 5px;
  background-color: white;
}

.search-bar i {
  color: #000;
}

.search-bar input {
  border: none;
  width: 500px;
}

input:focus {
  outline: none;
}

.background-imageBLOG {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../../images/ukbanner.jpg'); /* Replace with your image file */
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.bottom-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 15px;
}

.bottom-menu .menu-item {
  display: inline-block;
  margin: 0 10px;
}

.bottom-menu .menu-item a {
  color: white;
  text-decoration: none;
  font-weight: 400;
  font-family: "Madimi One", sans-serif;
}

.bottom-menu .menu-item a:hover {
  text-decoration: underline;
}

#categoryMenu {
  display: inline-block;
  margin: 0 10px;
}

.view-all-btn {
  position: absolute;
  right: 10px;
  top: 10px;
}

.view-all-btn a {
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 400;
}

.view-all-btn a:hover {
  color: white;
  background-color: #F9B545;
}

#allBlogsGallery {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* Ensures the cards wrap to the next line on smaller screens */
  width: 100%; /* Ensures the gallery takes full width */
}

.polaroid {
  margin: 10px; /* Adjust spacing between cards */
  padding: 10px;
  width: calc(33.333% - 20px); /* Three cards per row with spacing */
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 350px; /* Adjust as needed for the maximum width of the card */
  height: 300px; /* Fixed height for consistency */
}

.polaroid:hover {
  transform: translateY(-5px);
}

.polaroid img {
  width: 100%;
  height: 190px; /* Fixed height for images */
  object-fit: cover; /* Ensure images are properly scaled within the fixed height */
  display: block;
  border-radius: 5px;
}

.polaroid .container {
  padding: 10px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  flex-grow: 1; /* Ensure container fills the remaining space */
}

#loadMoreBtn {
  background-color: orangered;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  width: 200px;
}

.search-bar input {
  border: none;
  width: 500px;
  background-color: #F4ECFF !important;
  color: #000;
}

.searchIcon {
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
  height: 57px !important;
  width: 57px !important;
  margin-top: -1%;
  margin-left: -2%;
}

.loadMorebtn {
  margin-top: 20px;
  width: 60%;
  font-size: 17px;
  color: #fff;
  font-weight: 700;
  border: 1px solid #007Bff;
  box-sizing: border-box;
  border-radius: 0.5em;
  background: linear-gradient(60deg, #007Bff, #0652a3);
  padding: 1%;
}

@media (max-width: 780px) {
  .search-bar input {
    border: none;
    width: 100px;
    margin-left: -6%;
  }

  .search-bar {
    padding: 5px;
    border-radius: 5px;
    background-color: white;
  }

  .polaroid {
    width: calc(50% - 20px); /* Two cards per row with spacing */
  }

  .bottom-menu a {
    padding: 8px 12px; /* Adjust padding for smaller screens */
  }
}

@media (max-width: 480px) {
  .polaroid {
    width: calc(100% - 20px); /* One card per row with spacing */
  }

  .bottom-menu a {
    padding: 6px 10px; /* Further adjust padding for very small screens */
  }
}

/* Active category button styling */
.active-category {
  background-color: #F9B545;
  color: white;
}

/* .pagination-container {
  display: flex;
  align-items: center;
}
.pagination1 {
  list-style-type: none;
  display: flex;
  overflow: hidden;
  width: auto;
  margin: 0;
  padding: 0;
}
.pagination1 li {
  margin: 5px;
  padding: 5px 10px;
  border: 1px solid #000;
  cursor: pointer;
  flex-shrink: 0;
}
.pagination1 li.active {
  background-color: #F9B545;
  color: white;
}
.nav-button1 {
  background-color: #ddd;
  border: 1px solid #000;
  cursor: pointer;
  padding: 5px 10px;
} */




#search-blog-button {
  margin-left: 2px;
  background: linear-gradient(135deg, #25256B, #F9B545); 
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
}

#search-blog-button:active {
    transform: scale(0.95);
    background: radial-gradient(circle, rgba(249,181,69,0.5) 10%, rgba(37,37,107,1) 80%);
}