/* Blog-specific styles */

/* Hero ornaments for blog page - 25% smaller */
@media (min-width: 640px) {
  .blog-hero .absolute.bottom-0 {
    width: 415.5px !important;
    height: 360px !important;
  }
  .blog-hero .absolute.top-0 {
    width: 372px !important;
    height: 354px !important;
  }
}

/* Decorative blobs */
.blob-1 {
  position: absolute;
  top: 5rem;
  right: 25%;
  width: 24rem;
  height: 24rem;
  background-color: #45abd5;
  border-radius: 9999px;
  mix-blend-mode: multiply;
  filter: blur(48px);
  opacity: 0.1;
  animation: blob-animation 7s ease-in-out infinite;
}

.blob-2 {
  position: absolute;
  top: 10rem;
  left: 25%;
  width: 24rem;
  height: 24rem;
  background-color: #45abd5;
  border-radius: 9999px;
  mix-blend-mode: multiply;
  filter: blur(48px);
  opacity: 0.1;
  animation: blob-animation 7s ease-in-out infinite 2s;
}

@keyframes blob-animation {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Search input */

/* Modern Search Input */
.search-icon-wrapper {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
}

.search-icon {
  width: 20px;
  height: 20px;
  color: #9ca3af;
}

.search-input-modern {
  width: 100%;
  padding: 0.5rem 9rem 0.5rem 3rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background-color: #ffffff;
  color: #111827;
  outline: none;
  transition: all 0.2s ease;
}

.search-input-modern::placeholder {
  color: #9ca3af;
}

.search-input-modern:focus {
  border-color: #45abd5;
  box-shadow: 0 0 0 4px rgba(69, 171, 213, 0.08);
}

.search-button-modern {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: #45abd5;
  color: white;
  padding: 0.25rem 1.25rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: background 0.2s ease;
}

.search-button-modern:hover {
  background: #3a96bd;
}

.search-button-modern svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (max-width: 640px) {
  .search-input-modern {
    padding-right: 7rem;
  }

  .search-button-modern {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }

  .search-button-modern svg {
    width: 1rem;
    height: 1rem;
  }
}

/* Modern Category Buttons */
.category-btn-modern {
  padding: 0.25rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  color: #4b5563;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-btn-modern:hover {
  background-color: #f9fafb;
  border-color: #45abd5;
  color: #45abd5;
}

.category-btn-modern.active {
  background-color: #45abd5;
  color: white;
  border-color: #45abd5;
}

/* Custom Select */
.custom-select {
  position: relative;
  display: inline-block;
}

.rows-select {
  width: 70px;
  height: 32px;
  padding: 0.25rem 2rem 0.25rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background-color: white;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1rem;
}

.rows-select:focus {
  outline: none;
  border-color: #45abd5;
  box-shadow: 0 0 0 3px rgba(69, 171, 213, 0.1);
}

/* Pagination buttons */
.pagination-btn {
  padding: 0.5rem 0.75rem;
  height: 32px;
  border: none;
  background-color: transparent;
  color: #4b5563;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
  background-color: #f3f4f6;
  color: #111827;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-btn-nav {
  padding: 0.5rem 0.75rem;
}

.pagination-btn-number {
  width: 32px;
  padding: 0;
}

.pagination-btn-active {
  background-color: #01193f;
  color: white;
}

.pagination-btn-active:hover {
  background-color: #012247;
  color: white;
}

.pagination-ellipsis {
  padding: 0 0.25rem;
  color: #9ca3af;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .search-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .search-input {
    padding-right: 7rem !important;
  }

  .pagination-btn-nav {
    font-size: 0.75rem;
    padding: 0.5rem;
  }

  .pagination-btn-nav svg {
    width: 14px;
    height: 14px;
  }
}
