section[data-name="elf_project-listing"] form.formSearch {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background-color: #01458C;
  padding: 20px 0px;
  border-radius: 100px;
  width: auto;
  max-width: 50%;
  margin: -145px auto 60px;
}
section[data-name="elf_project-listing"] .title {
  color: #fff;
  font-size: 22px;
  margin-bottom: 0px;
}
section[data-name="elf_project-listing"] select {
  width: 380px;
  border-radius: 50px;
  border: 0px;
  margin: 0px 15px;
  padding: 5px 20px 5px 20px;
  background-color: #F4F8FB;
}

section[data-name="elf_project-listing"] .page-link:hover {
  color: #01458C !important;
}

section[data-name="elf_project-listing"] .knm-card {
  display: block;
  text-decoration: none;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

section[data-name="elf_project-listing"] .knm-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.28);
  border-top-right-radius: 60px;
}

section[data-name="elf_project-listing"] .knm-image-container {
  position: relative;
  width: 420px;
  height: 450px;
  border-top-right-radius: 60px;
  overflow: hidden;
}

section[data-name="elf_project-listing"] .knm-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform .4s ease;
}

section[data-name="elf_project-listing"] .attachment-full.size-full.wp-post-image {
  width: 160%;
  max-width: none;
  display: block;
  margin-left: 50%;
  transform: translateX(-50%);
  transition: transform 0.5s ease;
}

/* Gradient overlay 
section[data-name="elf_project-listing"] .knm-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,rgba(1, 69, 140, 0.5),transparent);
  z-index: 2;
}*/

section[data-name="elf_project-listing"] .knm-image-container {
    position: relative;
    overflow: hidden;
}

/* Gradient overlay */
section[data-name="elf_project-listing"] .knm-gradient-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;

background: linear-gradient(
    to bottom,
    rgba(4, 67, 134, 0) 0%,
    rgba(4, 67, 134, 0) 45%,
    rgba(4, 67, 134, 0.4) 70%,
    rgba(4, 67, 134, 1) 100%
);
}

/* Make sure image stays below overlay */
section[data-name="elf_project-listing"] .knm-bg img {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

section[data-name="elf_project-listing"] .knm-details {
  position: absolute;
  bottom: 20px;
  z-index: 2;
  padding: 0px 40px 0px 40px;
}

section[data-name="elf_project-listing"] .knm-arrow {
  width: 28px;
  position: relative;
  right: -330px;
  bottom: 10px;
  transform: rotate(-40deg);
}
section[data-name="elf_project-listing"] .knm-arrow img {
  transition: transform 0.4s ease, opacity 0.3s ease;
}

/* Hover effect */
section[data-name="elf_project-listing"] .knm-card:hover .knm-arrow img {
  transform: rotate(40deg);
  opacity: 0;
}

/* Hover replacement image */
section[data-name="elf_project-listing"] .knm-card:hover .knm-arrow {
  background-image: url('https://knm.stagings.entertopwp.com/wp-content/uploads/2025/09/arrow-red-round-right-2.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: rotate(40deg);
}

section[data-name="elf_project-listing"] h4 {
  color: #fff;
  font-size: 20px !important;
}

section[data-name="elf_project-listing"] .knm-line {
  width: 85%;
  height: 1px;
  background: #ffffff;
  transition: background-color 0.4s ease;
  margin: 10px 0px -7px 0px;
  position: relative;
}

section[data-name="elf_project-listing"] .knm-card:hover .knm-line {
  background-color: #83D10C;
}

section[data-name="elf_project-listing"] .list-inline-item {
  position: relative;
}

section[data-name="elf_project-listing"] .list-inline-item::after {
  content: "";
  display: block;
  width: 50%;
  height: 180px;
  margin-top: -174px;
  background-image: url("https://knm.stagings.entertopwp.com/wp-content/uploads/2025/12/green-bg-product-03.jpg");
  background-size: cover;
  background-position: center;
  margin-left: -7px;
}
section[data-name="elf_project-listing"]  .wrapper_pagination{
	display: block;
	clear:both;
	width: 100%;
	margin-top: 40px;
}

section[data-name="elf_project-listing"] ul.page-pagination,
section[data-name="elf_project-listing"] ul.page-pagination > li{
	display: flex !important;
  	gap: 30px;
  	justify-content: center;
	align-items: center;
  justify-content: center;
  text-align: center;
}

section[data-name="elf_project-listing"] ul.page-pagination > li.page-item.active a.page-link {
  color: #fff !important;
}

section[data-name="elf_project-listing"] ul.page-pagination > li a {
	color:#000;
}

section[data-name="elf_project-listing"]  ul.page-pagination > li.page-item.active{
	  font-weight: normal;
	  background-color: #01458C;
	  width: 40px;
	  height: 40px;
	  border-radius: 50px;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  text-align: center;
}

/* Base icon replacement */
section[data-name="elf_project-listing"] .fa-angle-right {
  position: relative;
  color: transparent !important; /* hide the FontAwesome icon */
  width: 37px;
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Insert your custom image */
section[data-name="elf_project-listing"] .fa-angle-right::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://knm.stagings.entertopwp.com/wp-content/uploads/2025/09/arrow-red-round-right-1.png");
  background-size: cover;
  background-repeat: no-repeat;
  transition: background-image 0.3s ease, transform 0.3s ease;
}

/* Hover image */
section[data-name="elf_project-listing"] .fa-angle-right:hover::before {
  background-image: url("https://knm.stagings.entertopwp.com/wp-content/uploads/2025/09/arrow-red-round-right-2.png");
  transform: translateX(3px);
}

/* Base icon replacement */
section[data-name="elf_project-listing"] .fa-angle-left {
  position: relative;
  color: transparent !important; /* hide the FontAwesome icon */
  width: 37px;
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Insert your custom image */
section[data-name="elf_project-listing"] .fa-angle-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("https://knm.stagings.entertopwp.com/wp-content/uploads/2025/09/arrow-red-round-left-1.png");
  background-size: cover;
  background-repeat: no-repeat;
  transition: background-image 0.3s ease, transform 0.3s ease;
}

/* Hover image */
section[data-name="elf_project-listing"] .fa-angle-left:hover::before {
  background-image: url("https://knm.stagings.entertopwp.com/wp-content/uploads/2025/09/arrow-red-round-left-2.png");
  transform: translateX(3px);
}

/* Laptop / Small Desktop — Below 1400px */
@media (max-width: 1400px) {

  section[data-name="elf_project-listing"] .knm-image-container {
    width: 360px;
    height: 400px;
  }

  section[data-name="elf_project-listing"] .knm-details {
    padding: 0px 30px;
  }

  section[data-name="elf_project-listing"] h4 {
    font-size: 18px !important;
	text-align: left;
  }

  section[data-name="elf_project-listing"] .knm-line {
    width: 80%;
    margin: 8px 0px -6px 0px;
  }

  section[data-name="elf_project-listing"] .knm-arrow {
    right: -290px;
    bottom: 8px;
  }

  section[data-name="elf_project-listing"] ul.page-pagination,
  section[data-name="elf_project-listing"] ul.page-pagination > li {
    gap: 20px;
  }
	
  section[data-name="elf_project-listing"] #listSearchelfprojectlisting {
  margin: 0 auto;
  text-align: center;
}
}

@media (max-width: 1080px) {
section[data-name="elf_project-listing"] form.formSearch {
  margin: -124px auto 32px;
}
 section[data-name="elf_project-listing"] .knm-image-container {
    width: 300px;
    height: 300px;
  }
  section[data-name="elf_project-listing"] .knm-arrow {
    right: -225px;
   bottom: 12px;
  }
section[data-name="elf_project-listing"] .knm-details {
  bottom: 0px;
}
}

@media (max-width: 810px) {
 section[data-name="elf_project-listing"] form.formSearch {
    margin: -58px auto 32px;
	max-width: 54%;
	padding: 16px 0px;
	gap: 0px;
  }
 section[data-name="elf_project-listing"] .knm-image-container {
    width: 225px;
    height: 264px;
  }
  section[data-name="elf_project-listing"] .knm-arrow {
    right: -159px;
  }
.fl-node-c3ry8kpuv54n.fl-module-html.fl-module {
    margin-right: 193px;
  }
}

/* Mobile — Below 480px */
@media (max-width: 480px) {

  /* GRID → 1 column */
  section[data-name="elf_project-listing"] .list-inline-item {
    width: 100%;
    margin-bottom: 0px;
  }
	
  section[data-name="elf_project-listing"] .title {
  color: #fff;
  font-size: 18px;
  margin-top: 8px;
	}	

    section[data-name="elf_project-listing"] .knm-details {
    padding: 0px 30px;
    text-align: left;
  }	
	
  /* Remove large background accent for better mobile spacing */
  section[data-name="elf_project-listing"] .list-inline-item::after {
    width: 120px;
    height: 120px;
    margin-top: -110px;
  }

  /* Image box */
  section[data-name="elf_project-listing"] .knm-image-container {
    width: 100%;
    height: 330px;
  }

  /* Title */
  section[data-name="elf_project-listing"] h4 {
    font-size: 18px !important;
  }

  /* Line */
  section[data-name="elf_project-listing"] .knm-line {
    width: 70%;
  }

  /* Arrow position smaller */
  section[data-name="elf_project-listing"] .knm-arrow {
    right: -256px;
    bottom: 15px;
  }

  section[data-name="elf_project-listing"] .knm-arrow img {
    width: 24px;
  }

  /* Disable hover transform on mobile */
  section[data-name="elf_project-listing"] .knm-card:hover {
    transform: none;
    box-shadow: none;
  }

  /* Filter bar full width */
  section[data-name="elf_project-listing"] form.formSearch {
    max-width: 100%;
    border-radius: 30px;
    margin: 20px auto;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 20px;
  }

  section[data-name="elf_project-listing"] select {
    width: 100%;
	margin: 0 auto;
    text-align: center;
  }

  /* Pagination spacing */
  section[data-name="elf_project-listing"] ul.page-pagination,
  section[data-name="elf_project-listing"] ul.page-pagination > li {
    gap: 12px;
  }

  section[data-name="elf_project-listing"] ul.page-pagination > li.page-item.active {
    width: 32px;
    height: 32px;
  }

  /* Arrow icons size */
  section[data-name="elf_project-listing"] .fa-angle-right,
  section[data-name="elf_project-listing"] .fa-angle-left {
    width: 32px;
    height: 32px;
  }

}
