/* ====== Company Archive Page Styles ====== */

/* Grid layout */
ul.wpjmc-companies {
  list-style: none;
  margin: 30px auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
}

/* Company Item */
li.company {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
}

li.company:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

/* Inner structure */
.company-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Logo section */
.company-logo {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  overflow: hidden;
}

.company-logo img {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

li.company:hover .company-logo img {
  transform: scale(1.05);
}

/* Content */
.company-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.company-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.company-title--link {
  color: #0073aa;
  text-decoration: none;
  transition: color 0.3s ease;
}

.company-title--link:hover {
  color: #005177;
  text-decoration: underline;
}

.company-excerpt p {
  font-size: 0.95rem;
  color: #4b5563;
  margin: 0;
}

/* Filter Bar */
.wpjmc-filter-bar {
  max-width: 1200px;
  margin: 0 auto 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.wpjmc-filter-bar input,
.wpjmc-filter-bar select {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
}

.wpjmc-filter-bar button {
  background: #0073aa;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wpjmc-filter-bar button:hover {
  background: #005177;
}
.mas-wpjmc-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
  font-family: "Inter", sans-serif;
}

.mas-wpjmc-pagination .page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.mas-wpjmc-pagination .page-numbers li {
  display: inline-block;
}

.mas-wpjmc-pagination .page-numbers a,
.mas-wpjmc-pagination .page-numbers span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  font-size: 15px;
  color: #333;
  text-decoration: none;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.mas-wpjmc-pagination .page-numbers a:hover {
  background-color: #0073aa;
  color: #fff;
  border-color: #0073aa;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.mas-wpjmc-pagination .page-numbers .current {
  background-color: #0073aa;
  color: #fff;
  border-color: #0073aa;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  cursor: default;
}

.mas-wpjmc-pagination .page-numbers .next {
  font-weight: bold;
}

.mas-wpjmc-pagination .page-numbers .next:hover {
  background-color: #005c87;
}


/* Mobile */
@media (max-width: 768px) {
  ul.wpjmc-companies {
    grid-template-columns: 1fr;
  }

  .wpjmc-filter-bar {
    flex-direction: column;
  }

  .wpjmc-filter-bar input,
  .wpjmc-filter-bar select,
  .wpjmc-filter-bar button {
    width: 100%;
  }
}

/* Fade-in animation */
li.company {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}
li.company:nth-child(even) {
  animation-delay: 0.1s;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}