.header {
  background: url("../public/ourcompanybg.png");
  background-size: cover;
}

#myDropdown {
  width: 170px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  text-align: center;
  background-image: linear-gradient(45deg, transparent 50%, gray 50%),
    linear-gradient(135deg, gray 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(1em + 2px),
    calc(100% - 15px) calc(1em + 2px), calc(100% - 2.5em) 0.5em;
  background-size: 5px 5px, 5px 5px, 1px 1.5em;
  background-repeat: no-repeat;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none; /* Add this line */
  outline: none;
  border: none;
  color: rgb(77, 76, 76);
}
@media (max-width: 605px) {
  #myDropdown {
    width: 100%;
    max-width: 300px;
  }
}

#myDropdown:focus {
  outline: none;
  border-color: #aaa;
}
#myDropdown option {
  font-size: 14px;
  background-color: #f5f5f5; /* Change this to your desired background color */
}
.companies {
  background-color: #f5f5f5;
}
.search-container {
  max-width: 1200px;
  padding: 60px 20px;
  margin: auto;
  width: 100%;
  padding-bottom: 0px;
}

.search-input {
  padding: 10px;
  font-size: 16px;
  width: 100%;
  max-width: 300px;
  border-radius: 5px;
  background-color: #fff;
  color: #333;
  border: none;
  outline: none;
}

.search-input:focus {
  border-color: #007bff;
}

.search-input:hover {
  cursor: pointer;
}

.grid-container {
  display: grid;
  max-width: 1200px;
  padding: 60px 20px;
  grid-template-columns: repeat(
    auto-fill,
    minmax(250px, 1fr)
  ); /* Adjust as needed */
  gap: 16px;
  margin: auto;
  padding-bottom: 0px;
}

/* Grid item styles */
.grid-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1; /* Ensures square items */
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 6px;
  overflow: hidden;
  display: none;
  height: 320px;
}
.grid-item.visible {
  display: block;
}
.ribbon {
  position: absolute;
  top: 15px;
  right: -30px;
  background: #ffeb99; /* Light Yellow */
  color: #000;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 30px;
  transform: rotate(45deg);
  z-index: 20;
}

.image-wrapper {
  position: relative;
  width: 100%;
  height: 50%;
  overflow: hidden;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  padding-left: 20px;
  cursor: pointer;
}

.image-wrapper img {
  height: 320px;
  width: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

/* Overlay Effect */
 .image-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /*Dark semi-transparent overlay  */
  opacity: 0;
  transition: opacity 0.5s ease-in;
  z-index: 2;
}

/* Hover Effect */
.grid-item:hover .image-wrapper::before {
  opacity: 1;
}

.grid-item:hover .image-wrapper img {
  transform: scale(1.05); /* Slight zoom effect */
}

.info {
  padding: 10px 30px;
  display: flex;
  flex-direction: column;
  margin-top: 10px;
}
.info h3 {
  font-size: 16px;
  color: black;
  margin-bottom: 2px;
}
.info h3 a {
  text-decoration: none;
  color: black;
}
.info p {
  font-size: 13px;
  color: #7f8995;
}
.info p:nth-child(2) {
  margin-bottom: 0px;
}
.info p:nth-child(3) {
  margin-top: 30px;
}

.show-more-btn {
  text-align: center;
  padding: 50px;
}

#showMoreBtn {
  padding: 10px 20px;
  font-size: 16px;
  background-color: #0f5284;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#showMoreBtn:hover {
  background-color: #1375be;
}
@media screen and (max-width: 1200px) {
  .search-container {
    padding: 60px 20px;
    padding-bottom: 0px;
  }
  .grid-container {
    grid-template-columns: repeat(
    auto-fill,
    minmax(250px, 1fr)
  );
    padding: 60px 20px;
    gap: unset;
    row-gap: 40px;
  }

  .grid-item {
    height: 320px;
    aspect-ratio: unset;
    width: 90%;
  }
  .image-wrapper {
    padding: 35px;
  }
}

@media screen and (max-width: 992px) {
  .grid-container {
    grid-template-columns: repeat(
    auto-fill,
    minmax(250px, 1fr)
  );
  }

  .grid-item {
    height: 280px;
  }

  .image-wrapper {
    padding: 30px 70px;
  }

  .info h3 {
    font-size: 16px;
  }

  .info p {
    font-size: 14px;
  }

  .show-more-btn {
    margin-top: 15px;
  }

  #showMoreBtn {
    padding: 8px 16px;
    font-size: 14px;
  }
}

@media screen and (max-width: 768px) {
  .search-container {
    text-align: center;
    padding-bottom: 0px;
    display: flex;
    gap: 20px;
  }
  .grid-container {
    grid-template-columns: repeat(
    auto-fill,
    minmax(200px, 1fr)
  );
    padding: 40px 20px; /* Reduce padding */
  }

  .grid-item {
    height: 280px;
  }

  .image-wrapper {
    padding: 20px;
  }

  .info {
    padding: 8px 12px;
  }

  .info h3 {
    font-size: 13px;
  }

  .info p {
    font-size: 11px;
  }
}

@media screen and (max-width: 600px) {
  .search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }
  .grid-container {
    grid-template-columns: repeat(
    auto-fill,
    minmax(180px, 1fr)
  );
    padding: 30px 20px;
    align-items: center;
  }

  .grid-item {
    height: 300px;
  }

  .image-wrapper {
    padding: 30px;
  }

  .info {
    padding: 5px 30px;
  }

  .info h3 {
    font-size: 16px;
  }

  .info p {
    font-size: 12px;
  }

  #showMoreBtn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

@media screen and (max-width: 455px) {
  .grid-container {
     grid-template-columns: repeat(
    auto-fill,
    minmax(220px, 1fr)
  );
    padding: 20px 20px;
  }

  .grid-item {
    height: 240px;
    margin: auto;
  }

  .image-wrapper {
    padding: 30px;
  }

  .info h3 {
    font-size: 16px;
    text-align: center;
  }

  .info p {
    font-size: 12px;
    text-align: center;
  }

  #showMoreBtn {
    padding: 5px 10px;
    font-size: 11px;
  }
}

/* carousel*/
.carousel-container {
  max-width: 1200px;
  margin: 50px auto;
  overflow: hidden;
  padding: 0px 20px;
  margin-bottom: 0px;
}
.carouselHeading h1 {
  font-size: 30px;
  color: rgb(15, 81, 130);
  font-weight: 600;
  line-height: 35px;
  margin-bottom: 20px;
}

.swiper {
  width: 100%;
  height: 400px;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px;
  background: #fcfcfc;
  border: 2px solid rgba(15, 81, 130, 0.2); /* 50% opacity */
}

.founder-info {
  display: flex;
  flex-direction: column;
  padding: 45px;
  flex: 1.3;
  gap: 50px;
}

.founder-info .founder-detail h2 {
  font-size: 18px;
  font-weight: 700;
}
.founder-info .founder-detail p {
  font-size: 13px;
  font-weight: 400;
}
.founder-info p {
  color: rgb(122, 122, 122);
}

.founder-photo {
  flex: 1;
  text-align: center;
}

.founder-photo img {
  width: 70%;
  object-fit: cover;
}

/* Swiper Custom Styling */
.swiper-button-next,
.swiper-button-prev {
  color: #333;
}

.swiper-pagination-bullet-active {
  background: #007bff;
}

/* Responsive */

@media (max-width: 940px) {
  .founder-info {
    padding: 20px;
  }
  .founder-photo img {
    width: 90%;
  }
}
@media (max-width: 768px) {
  .carouselHeading {
    text-align: center;
  }
  .swiper {
    width: 65%;
    height: 450px;
  }
  .swiper-slide {
    flex-direction: column;
    text-align: left;
    padding: 0px;
  }

  .founder-info {
    padding: 20px;
    gap: 20px;
  }
  .founder-info p {
    font-size: 12px;
    line-height: 23px;
  }
  .founder-photo {
    flex: unset;
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .founder-photo img {
    width: 65%;
  }
}
@media (max-width: 468px) {
  .swiper {
    width: 95%;
    height: auto;
  }
  .founder-photo img {
    width: 50%;
  }
  .founder-info {
    padding: 20px;
    gap: 5px;
    padding-bottom: 0px;
  }
  .swiper-slide {
    height: auto;
    padding-bottom: 40px;
  }
  .founder-info .founder-detail h2 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 2px;
}
}
