.main-content {
  margin-left: auto;
  margin-right: auto;
  max-width: 72rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* .hero-section {
  border-radius: 1.25rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
} */

.hero-background-overlay {
  position: absolute;
  inset: 0px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero-text-block {
  grid-column: span 7 / span 7;
}

.hero-title {
  font-size: 40px;
  line-height: 48px;
  font-weight: 800;
  margin-bottom: 0.75rem;
  font-family: var(--font-1);
  color: var(--text-main);
}

.hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.breadcrumb-link {
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.breadcrumb-icon {
  width: 1rem;
  height: 1rem;
}

.hero-visual-block {
  grid-column: span 5 / span 5;
}

.filter-section {
  margin: 5rem 0;
  text-align: center;
  display: block ruby;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.filter-button {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  border-radius: 9999px;
  background-color: var(--bg-main-1);
  border-width: 1px;
  border-color: rgb(226 232 240 / 1);
  font-size: var(--fs-3);
  line-height: 1.25rem;
  font-weight: 500;
  font-family: var(--font-2);
  color: var(--text-muted);
}

.filter-button:focus {
  box-shadow: 0 0 0 0px #fff, 0 0 0 calc(2px + 0px) rgb(59 130 246 / 0.5),
    0 0 #0000;
}

.posts-grid-section {
  margin: 0px 100px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.post-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.post-media-block {
  position: relative;
  padding: 0.75rem;
}

.category-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background-color: var(--contrast);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 700;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  border-radius: 9999px;
  font-family: var(--font-2);
  color: var(--contrast-3);
}

.image-radius {
  --r: 15px;
  --s: 30px;
  --x: 16px;
  --y: 4px;
  /* background: #3fb8af; */
  border-radius: var(--r);
  --_m: /calc(2 * var(--r)) calc(2 * var(--r)) radial-gradient(#000 70%, #0000
        72%);
  --_g: conic-gradient(
    from 90deg at calc(100% - var(--r)) calc(100% - var(--r)),
    #0000 25%,
    #000 0
  );
  --_d: (var(--s) + var(--r));
  mask: calc(100% - var(--_d) - var(--x)) 100% var(--_m),
    100% calc(100% - var(--_d) - var(--y)) var(--_m),
    radial-gradient(var(--s) at 100% 100%, #0000 99%, #000 calc(100% + 1px))
      calc(-1 * var(--r) - var(--x)) calc(-1 * var(--r) - var(--y)),
    var(--_g) calc(-1 * var(--_d) - var(--x)) 0,
    var(--_g) 0 calc(-1 * var(--_d) - var(--y));
  mask-repeat: no-repeat;
}

.post-image {
  border-radius: 18px;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.circular-arrow-button {
  position: absolute;
  bottom: 0.25rem;
  right: 0.5rem;
  color: rgb(255 255 255 / 1);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 0px #fff, 0 0 0 calc(4px + 0px) rgb(201, 162, 77), 0 0 #0000;
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.circular-arrow-button:hover {
  transform: translate(0, -2px) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);
}

.arrow-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.post-content {
  font-family: var(--font-2);
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-bottom: 1.25rem;
}

.meta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.75rem;
  line-height: 1rem;
  margin-bottom: 0.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.calendar-icon {
  width: 1rem;
  height: 1rem;
}

.admin-icon {
  width: 1rem;
  height: 1rem;
}

.post-title {
  font-weight: 600;
  font-size: 18px;
  color: var(--text-main);
  line-height: 1.75rem;
  text-align: start;
  font-family: var(--font-1);
}
svg.up-right {
  width: 28px;
  stroke: var(--color-1);
}
.pagination-section {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 0.75rem;
  background-image: linear-gradient(to right, #c9a24d, rgba(255, 74, 141, 0));
  padding-top: 1.5rem;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 150px;
  font-family: var(--font-2);
}

.result-count {
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin-top: 20px;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prev-button {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 0.375rem;
  border-width: 1px;
  border-color: rgb(226 232 240 / 1);
  background-color: rgb(255 255 255 / 1);
}

.prev-button:disabled {
  opacity: 0.4;
}

.prev-icon {
  width: 1rem;
  height: 1rem;
}

.page-button {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 0.375rem;
  border-width: 1px;
  border-color: rgb(226 232 240 / 1);
  background-color: rgb(255 255 255 / 1);
}

.next-button {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 0.375rem;
  border-width: 1px;
  border-color: rgb(226 232 240 / 1);
  background-color: rgb(255 255 255 / 1);
}

.next-icon {
  width: 1rem;
  height: 1rem;
}

#igrwf {
  background-image: url("https://xcare-demo.pbminfotech.com/demo1/wp-content/uploads/sites/3/2024/01/titlebar-bg-img.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  height: 450px;
  background-position: center center;
  background-color: rgb(130, 125, 125);
  margin: 30px 25px;
  display: flex;
  font-family: var(--font-2);
}

@media (max-width: 992px) {
  /* .hero-section {
    padding: 1.5rem;
  } */

  .hero-text-block {
    grid-column: span 12 / span 12;
  }

  .hero-visual-block {
    grid-column: span 12 / span 12;
  }

  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .posts-grid-section {
    margin: 0px 50px;
  }
}

@media (max-width: 480px) {
  /* .hero-section {
    padding: 1.25rem;
  } */
  .post-image {
    height: 180px;
  }
  .posts-grid-section {
    margin: 0px 10px;
  }
  .hero-title {
    font-size: 28px;
    line-height: 2rem;
  }

  .posts-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  #i3zey {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Blog Search Styles */
.blog-search {
  margin-bottom: 2rem;
  text-align: center;
}

.search-form {
  max-width: 500px;
  margin: 0 auto;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem;
  border: 2px solid rgb(229 231 235 / 1);
  border-radius: 2rem;
  font-size: 1rem;
  font-family: var(--font-2);
  transition: all 0.3s ease;
  background-color: rgb(255 255 255 / 1);
}

.search-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgb(245 158 11 / 0.1);
}

.search-button {
  position: absolute;
  left: 0.5rem;
  background: none;
  border: none;
  color: rgb(107 114 128 / 1);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-button:hover {
  color: var(--gold);
  background-color: rgb(249 250 251 / 1);
}

.search-results-info {
  background-color: rgb(254 249 195 / 1);
  border: 1px solid rgb(252 211 77 / 1);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 1rem;
  color: rgb(120 53 15 / 1);
  font-family: var(--font-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.clear-search {
  color: rgb(120 53 15 / 1);
  text-decoration: underline;
  font-weight: 500;
  font-size: 0.9rem;
}

.clear-search:hover {
  color: rgb(120 53 15 / 1);
  text-decoration: none;
}

.clear-search-link {
  color: var(--gold);
  text-decoration: underline;
  font-weight: 500;
}

.clear-search-link:hover {
  color: var(--gold);
  text-decoration: none;
}

/* WordPress Blog Styles */
.no-posts-found {
  grid-column: span 3;
  text-align: center;
  padding: 3rem;
  background-color: var(--bg-main-1);
  border-radius: 0.75rem;
  border: 1px solid var(--bg-main-2);
}

.no-posts-found h3 {
  color: var(--text-main);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-2);
}

.no-posts-found p {
  color: var(--color-1);
  font-family: var(--font-2);
}

/* Updated Pagination Styles */
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prev-button,
.next-button,
.page-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border: 1px solid rgb(229 231 235 / 1);
  border-radius: 0.5rem;
  background-color: rgb(255 255 255 / 1);
  color: rgb(15 43 91 / 1);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 44px;
  min-height: 44px;
}

.prev-button:hover:not(.disabled),
.next-button:hover:not(.disabled),
.page-button:hover {
  background-color: var(--gold-hover);
  color: rgb(255 255 255 / 1);
}

.prev-button.disabled,
.next-button.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.page-button.active {
  background-color: var(--gold);
  color: rgb(255 255 255 / 1);
  border: none;
}

/* Updated Filter Styles */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.filter-button {
  padding: 0.75rem 1.5rem;
  border: 1px solid rgb(229 231 235 / 1);
  border-radius: 2rem;
  background-color: rgb(255 255 255 / 1);
  color: rgb(55 65 81 / 1);
  text-decoration: none;
  font-weight: 500;
  font-family: var(--font-2);
  transition: all 0.2s ease;
  cursor: pointer;
}

.filter-button:hover,
.filter-button[aria-pressed="true"] {
  background-color: var(--gold-hover);
  color: rgb(255 255 255 / 1);
}

/* Post Title Link */
.post-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.post-title a:hover {
  color: var(--gold);
}

/* Responsive Design Updates */
@media (max-width: 768px) {
  .filter-bar {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .filter-button {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .pagination-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .result-count {
    text-align: center;
    margin-bottom: 1rem;
  }

  .pagination-controls {
    gap: 0.25rem;
  }

  .prev-button,
  .next-button,
  .page-button {
    padding: 0.5rem;
    min-width: 36px;
    min-height: 36px;
  }
}
