.meso-magazin-overview-widget {
  max-width: 100%;
  margin: 0 auto;
}

/* Filter Row Styles */
.filter-row {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

h3.filter-section-header {
  font-size: 20px;
  font-weight: 400;
  color: #1e3649;
  margin: 0;
  padding: 0;
  font-family: "Local Roboto", sans-serif;
}

.filter-left {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1;
}

.filter-right {
  flex: 0 0 auto;
}

.filter-control-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

/* Filter Button Styles */
.filter-button {
  cursor: pointer;
  position: relative;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: #12223b30;
  padding: 0px 24px 0px 24px;
  text-align: center;
  font-size: 20px;
  font-weight: 400;
  border-radius: 100px;
  transition: all 0.3s ease;
  white-space: nowrap;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Local Roboto", sans-serif;
  background-color: #ffffff;
  color: #1e3649;
}

.filter-button:hover {
  border-color: #2e5d78;
}

.filter-button.active {
  background-color: #2e5d78;
  color: #ffffff;
}

/* Search Input */
.meso-magazin-overview-widget input.search-input {
  border-radius: 100px;
  font-size: 20px;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: #12223b30;
  padding: 0px 24px 0px 24px;
  color: #1e3649;
  height: 50px;
  font-family: "Local Roboto", sans-serif;
  width: 470px;
  margin-top: 34px;
}

.search-input:focus {
  outline: none;
  border-color: #2e5d78;
}

.filter-right {
  position: relative;
  z-index: 1;
}

/* Posts Grid - 3x3 Layout (9 posts per page) */
.meso-magazin-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 50px;
}

.meso-magazin-post-card {
  background: #ffffff;
  border-radius: 40px;
  overflow: hidden;
  border-style: solid;
  border-width: 1px 1px 1px 1px;
  border-color: #12223b30;
  transition: box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.meso-magazin-post-card:hover {
  box-shadow: 23px 24px 50px -27px rgba(0, 0, 0, 0.23);
}

.meso-magazin-post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

h3.meso-magazin-post-title {
  padding: 15px;
  font-size: 22px;
  margin: 0;
  color: #1e3649;
}

.meso-magazin-post-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.meso-magazin-post-card a:hover {
  color: inherit;
}

/* Post Excerpt */
.meso-magazin-post-excerpt {
  margin: 0 15px 15px 15px;
  font-size: 18px;
  font-weight: 300;
  color: #1e3649;
  font-family: "Local Roboto", sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Button Styles */
.meso-magazin-post-card .elementor-element.ekit_we_effect {
  padding: 0 15px 30px 15px;
  margin: 0;
  margin-top: auto;
}

.meso-magazin-post-card .elementor-element.elementor-align-center {
  text-align: center;
}

.meso-magazin-post-card .elementor-widget-button .elementor-button {
  display: inline-flex;
  background-color: #2e5d78;
  color: #ffffff;
  font-weight: 400;
  border: none;
  cursor: pointer;
  background-color: var(--e-global-color-secondary);
  font-family: "Local Roboto", Sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7em;
  border-radius: 12px 12px 12px 12px;
}

.meso-magazin-post-card .elementor-button:hover {
  background-color: #1e4455;
  color: #ffffff;
  text-decoration: none;
}

.meso-magazin-post-card .elementor-button-content-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row-reverse;
}

.meso-magazin-post-card .elementor-button-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.meso-magazin-post-card .elementor-button-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.meso-magazin-post-card .elementor-button-text {
  display: inline-block;
  white-space: nowrap;
}

/* Pagination Styles */
.meso-magazin-pagination {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.meso-magazin-pagination a,
.meso-magazin-pagination span {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 50%;
  text-decoration: none;
  font-size: 16px;
  color: #2d4751;
  min-width: 40px;
  text-align: center;
  line-height: 1.5;
  transition: all 0.3s ease;
}

.meso-magazin-pagination a:hover {
  background-color: #2e5d78;
  color: #ffffff;
}

.meso-magazin-pagination .current {
  background-color: #2e5d78;
  color: #ffffff;
}

.meso-magazin-pagination .dots {
  color: #2d4751;
}

/* Loading Spinner */
.loading-posts {
  text-align: center;
  padding: 40px;
}

.loading-posts img {
  max-width: 50px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .meso-magazin-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 880px) {
  .filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-section {
    width: 100%;
  }

  .filter-left {
    width: 100%;
  }

  .filter-right {
    width: 100%;
  }

  .search-input {
    width: 100%;
  }

  .meso-magazin-posts-grid {
    grid-template-columns: 1fr;
  }

  .meso-magazin-overview-widget input.search-input {
    width: 100%;
  }

  .filter-button {
    padding: 8px 16px;
    font-size: 16px;
  }

  .meso-magazin-overview-widget input.search-input {
    font-size: 16px;
  }

  .meso-magazin-post-title {
    font-size: 18px;
  }
}
