.portfolio-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
	flex-wrap: wrap;
}

.custom-dropdown {
    position: relative;
    display: inline-block;
}

.drop-btn {
    background: #08254F!important;
    color: #fff;
    padding: 10px 50px!important;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 500;
}


.drop-btn:hover{
    background-color: #1398BB!important;
    color: white!important;
}

.drop-btn:focus{
    color: white!important;
}

.drop-btn.active {
    background: #1398BB;
}

.drop-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1398BB;
    min-width: 180px;
    border-radius: 8px;
    overflow: hidden;
    z-index: 10;
    list-style: none;
    padding: 10px;
    margin: 5px 0 0 0;
    width: 100%;
}

.drop-list li {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: white;
    text-align: center;
}

.drop-list li:hover {
    background: #1398BB;
}

.arrow-dropdown-cus .drop-btn {
    position: relative;
    padding-right: 30px; /* space for arrow */
    cursor: pointer;
}

/* Custom arrow using pseudo-element */
.arrow-dropdown-cus .drop-btn::after {
content: "";
    position: absolute;
    margin-left: 10px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    width: 10px;
    height: 6px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid #ffffff;
    border-radius: 2px;
    transition: transform 0.3s 
ease;
    pointer-events: none;
}

/* Rotate arrow when active/open */
.arrow-dropdown-cus .drop-btn.active::after {
    transform: translateY(-50%) rotate(180deg);
}


.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 100px;
}

.company-card {
  /* perspective: 1000px; */
  width: 360px;
  /* width: 100%; */
  height: 200px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 200px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.company-card:hover .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  /* border: 1px solid #ddd; */
  overflow: hidden;
}
.card-front {
  padding: 20px;
}

.card-front img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.card-back {
  background: #fff;
  transform: rotateY(180deg);
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0px 4px 8px 3px #00000026;
}

.card-back-inner {
  border: 1px solid #08254f;
  padding: 10px;
  border-radius: 6px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-back h3 {
  font-weight: 400;
  font-size: 17px;
  line-height: 100%;
  letter-spacing: 12%;
  color: #00000059;
  text-transform: uppercase;
  margin: 0px;
  margin-bottom: 4px;
}

.card-back p {
  font-weight: 400;
  font-size: 17px;
  line-height: 22px;
  letter-spacing: 2%;
  margin: 0px;
}

.card-back a {
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 12%;
  color: #00000059;
  text-transform: uppercase;
  display: inline-block;
  border-bottom: 1px solid black;
  width: fit-content;
}

.select-cus-ui-cc-filter{
    background-color: #08254f;
    border-radius: 100px;
    color: white;
}

@media screen and (max-width: 767px){
	.custom-dropdown .drop-btn{
		width: 300px;
	}
	.portfolio-filters{
		flex-direction: column;
		justify-content: center;
        align-items: center;
	}
}