/* === Search Section Wrapper === */
#search-apofaseis {
  padding: 60px 20px;
  background: #f8f9fa;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* === Container === */
.search-apofaseis {
  /* max-width: 900px; */
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 40px;
}

/* === Search Bar === */
.search-bar-apofaseis form {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.search-bar-apofaseis input[type='text'],
.search-bar-apofaseis input[type='date'],
.search-bar-apofaseis select {
  /* flex: 1 1 200px; */
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  background: #fff;
  transition: all 0.2s ease;
}

.search-bar-apofaseis input:focus,
.search-bar-apofaseis select:focus {
  outline: none;
  border-color: #354353;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.apofaseis-list li a,
.pagination .page-btn {
  font-size: 17px;
}

.label-content label {
  font-size: 13px;
  color: #333;
  padding: 0px 5px;
}

/* === Buttons === */
.search-bar-apofaseis button {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-bar-apofaseis .btn-search {
  background: #354353;
  color: white;
}

.search-bar-apofaseis .btn-search:hover {
  background: #580405;
}

.search-bar-apofaseis .btn-reset {
  background: #e5e7eb;
  color: #333;
}

.search-bar-apofaseis .btn-reset:hover {
  background: #33333357;
}

/* === Results === */
.search-results-apofaseis {
  margin-top: 40px;
  min-height: 100px;
}

.search-results-apofaseis p {
  color: #666;
  text-align: center;
  font-size: 15px;
}

.apofaseis-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #eee;
}

.apofaseis-list li {
  border-bottom: 1px solid #eee;
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.apofaseis-list li a {
  color: #354353;
  text-decoration: none;
  font-weight: 500;
}

.apofaseis-list li a:hover {
  text-decoration: underline;
}

.apofaseis-list .date {
  color: #999;
  font-size: 14px;
}

.pagination {
  margin-top: 25px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0rem;
}

.pagination .page-btn {
  display: inline-block;
  margin: 0 4px;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #ddd;
  color: #354353;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.pagination .page-btn:hover {
  background: #580405;
  color: #fff;
}

.pagination .page-btn.active {
  background: #580405;
  color: #fff;
  pointer-events: none;
}

.pagination .page-btn.prev,
.pagination .page-btn.next {
  font-weight: 600;
}

input[type='date'] {
  position: relative;
  font-family: inherit;
  cursor: pointer;
}

input[type='date']::before {
  content: attr(placeholder);
  position: absolute;
  left: 10px;
  color: #aaa;
}

input[type='date']:focus::before,
input[type='date']:valid::before {
  display: none;
}

input[type='date']::-webkit-calendar-picker-indicator {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  opacity: 0;
  cursor: pointer;
}

/* === Latest Categories Section === */
#latest-categories {
  padding: 60px 20px;
  /* background: #f1f5f9; */
  /* font-family: 'Inter', 'Segoe UI', sans-serif; */
}

.latest-categories-container {
  margin: 0 auto;
  text-align: center;
}

#latest-categories h2 {
  font-size: 26px;
  margin-bottom: 30px;
  color: #222;
  font-weight: 600;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.category-card {
  display: block;
  background: #ffffff;
  padding: 15px;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  border: 1px solid #e5e7eb;
}

.category-card:hover {
  background: #580405;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

.category-card .category-name {
  font-size: 18px;
  font-weight: 500;
}

/* === Responsive === */
@media (max-width: 768px) {
  .search-bar-apofaseis form {
    align-items: stretch;
  }

  .search-bar-apofaseis button {
    width: 100%;
  }
}
