/* Filter Section */
.filter {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-right: 50px;
  margin-bottom: 2rem;
}

.filter select {
  border: 1px solid #ccc;
  border-radius: 5px;
  margin: 1rem;
  font-family: 'Schibsted Grotesk', sans-serif;
  padding: 0.5rem;
  cursor: pointer;
  min-width: 150px;
}

option:hover {
  background-color: #1c4386 !important;
  color: white;
}

/* Filter Button Styles */
.filter button {
  color: white;
  border-radius: 5px;
  padding: 8px;
  cursor: pointer;
  margin-right: 1rem;
  background-color: #1c4386;
  border: 1px solid #1c4386;
  transition: 0.3s ease-in-out;
}

.filter button:hover {
  background-color: white;
  border: 1px solid #1c4386;
  color: #1c4386;
}

.filter button:hover i {
  color: #1c4386;
}

/* Main Container */
.incubatee {
  width: 100%;
  margin: 2rem 0;
  color: #1c4386;
}

.incubatee .wrapper {
  width: 90%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  padding: 0px;
  margin: 0 auto;
  gap: 2rem;
}

/* Title */
center h1 {
  margin: 0;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Card Styles */
.card {
  width: 27rem;
  max-width: 100%;
  display: flex;
  height: 500px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Left Part - Image */
.left-part {
  display: flex;
  justify-content: center;
  width: 50%;
  height: 100%;
  align-items: center;
  flex: 1;
  padding: 10px;
  background-color: #fafafa;
}

.left-part img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

/* Right Part - Content */
.right-part {
  display: flex;
  flex-direction: column;
  width: 50%;
  flex: 1;
  padding: 20px;
  background-color: #f0f0f0;
  transition: 0.3s ease-in-out;
}

.wrapper a:hover .card .right-part {
  background-color: #1c4386;
  color: white;
}

.company-logo {
  height: 20%;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.company-logo img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.details {
  display: flex;
  flex-direction: column;
}

.name {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.2;
}

.description {
  font-size: 0.875rem;
  line-height: 1.4;
  flex: 1;
  margin-bottom: 15px;
}

.founder-name {
  font-size: 1rem;
  font-weight: 600;
  margin-top: auto;
}

/* Link Styles */
.wrapper a {
  color: #1c4386;
  cursor: pointer;
  text-decoration: none;
  display: block;
  width: 100%;
  max-width: 27rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  padding: 0 20px;
}

.step-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.step-links a {
  background-color: #1c4386;
  color: white !important;
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid #1c4386;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.step-links a:hover {
  background-color: white;
  color: #1c4386 !important;
  border: 1px solid #1c4386;
}

.current {
  padding: 8px 12px;
  font-weight: bold;
  white-space: nowrap;
}

/* No Results Message */
.no-results {
  text-align: center;
  font-size: 1.25rem;
  color: #666;
  margin: 4rem 0;
}

/* Responsive Design */

/* Large Desktop (1200px and up) */
@media screen and (min-width: 1200px) {
  .incubatee .wrapper {
    width: 85%;
  }

  .card {
    width: 28rem;
  }
}

/* Medium Desktop/Laptop (992px - 1199px) */
@media screen and (max-width: 1199px) {
  .card {
    width: 26rem;
  }
}

/* Small Desktop/Large Tablet (768px - 991px) */
@media screen and (max-width: 991px) {
  .incubatee .wrapper {
    width: 95%;
    gap: 1.5rem;
  }

  .card {
    width: 24rem;
    height: 450px;
  }

  .filter {
    margin-right: 25px;
  }

  center h1 {
    font-size: 2.2rem;
  }
}

/* Tablet (576px - 767px) */
@media screen and (max-width: 767px) {
  center h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .filter {
    justify-content: center;
    margin-right: 0;
    margin-bottom: 1.5rem;
  }

  .filter select {
    margin: 0.5rem;
    width: 200px;
  }

  .incubatee .wrapper {
    width: 90%;
    padding: 0 15px;
    gap: 1.5rem;
  }

  .card {
    width: 100%;
    max-width: 500px;
    height: 400px;
  }

  .right-part {
    padding: 15px;
  }

  .name {
    font-size: 1.1rem;
  }

  .description {
    font-size: 0.8rem;
  }

  .founder-name {
    font-size: 0.9rem;
  }

  .pagination {
    margin-top: 30px;
  }

  .step-links a,
  .current {
    padding: 6px 10px;
    font-size: 0.9rem;
  }
}

/* Mobile (480px - 575px) */
@media screen and (max-width: 575px) {
  center h1 {
    font-size: 1.8rem;
    padding: 0 15px;
  }

  .filter {
    padding: 0 15px;
  }

  .filter select {
    width: 180px;
    padding: 0.4rem;
  }

  .card {
    height: 350px;
    flex-direction: column;
  }

  .left-part,
  .right-part {
    width: 100%;
  }

  .left-part {
    padding: 8px;
  }

  .left-part img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .right-part {
    padding: 12px;
  }

  .company-logo {
    height: 25%;
    margin-bottom: 10px;
  }

  .name {
    font-size: 1rem;
    margin-bottom: 8px;
  }

  .description {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .founder-name {
    font-size: 0.85rem;
  }

  .step-links {
    justify-content: center;
  }

  .step-links a,
  .current {
    padding: 5px 8px;
    font-size: 0.8rem;
  }
}

/* Small Mobile (320px - 479px) */
@media screen and (max-width: 479px) {
  center h1 {
    font-size: 1.5rem;
  }

  .filter select {
    width: 160px;
  }

  .incubatee .wrapper {
    padding: 0 10px;
  }

  .left-part {
    height: 35%;
    padding: 6px;
  }

  .left-part img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .right-part {
    height: 65%;
    padding: 10px;
  }

  .name {
    font-size: 0.95rem;
  }

  .description {
    font-size: 0.7rem;
  }

  .founder-name {
    font-size: 0.8rem;
  }

  .step-links a,
  .current {
    padding: 4px 6px;
    font-size: 0.75rem;
  }
}

/* Ultra-wide screens */
@media screen and (min-width: 1400px) {
  .incubatee .wrapper {
    width: 80%;
  }

  .card {
    width: 30rem;
    height: 520px;
  }
}
