/* Basic grid and card styling */



.yps-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.yps-post-card {
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.yps-post-image {
    max-width: 100%;
    height: auto;
}

.yps-post-title {
    margin: 10px 0 5px;
}

.yps-post-title a {
    text-decoration: none;
    color: #333;
}

.yps-post-excerpt {
    font-size: 14px;
}

.yps-post-card-img {
	width:100%;
	height:400px;
}

.yps-post-card-img img{
	max-width:100%;
}

.yps-post-content {
    padding: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .yps-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .yps-posts-grid {
        grid-template-columns: 1fr;
    }
}



.select-hidden {
  display: none;
  visibility: hidden;
  padding-right: 10px;
}

.select {
  cursor: pointer;
  display: inline-block;
  position: relative;
  font-size: 16px;
  color: #fff;
  /* width: 220px */
  height: 40px;
}

.select-styled {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #fff;
color:#000;
  border-bottom: 1px solid #fbaf27;
  padding: 8px 15px;
  -moz-transition: all 0.2s ease-in;
  -o-transition: all 0.2s ease-in;
  -webkit-transition: all 0.2s ease-in;
  transition: all 0.2s ease-in;
}
.select-styled:after {
  content: "";
  display:block;
  width: 10px; /* Adjust based on the size you want */
  height: 10px; /* Adjust based on the size you want */
  background-image: url('https://hhq.com.my/wp-content/uploads/2023/05/Arrow_down.svg');
  background-size: contain; /* This ensures that your SVG fits nicely inside the element */
  background-repeat: no-repeat;
  background-position: center; /* Centers the background image */
  position: absolute;
  top: 16px;
  right: 10px;
}
.select-styled:hover {
  cursor:pointer;
}
.select-styled:active, .select-styled.active {
  background-color: #fff;
}
.select-styled:active:after, .select-styled.active:after {
  top: 9px;
  border-color: transparent transparent #fff transparent;
}

.select-options {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 1;
  margin: 0;
  list-style: none;
  background-color: #f2f2f2;
border-radius:10px;
box-shadow:0 .125rem .25rem rgba(0,0,0,.075)!important;
padding:0 !important;
}
.select-options li {
  margin: 0;
  padding: 12px 0 !important;
  -moz-transition: all 0.15s ease-in;
  -o-transition: all 0.15s ease-in;
  -webkit-transition: all 0.15s ease-in;
  transition: all 0.15s ease-in;
color:#000;
}
.select-options li:hover, .select-options li.is-selected {
  color: #fff;
  background: #666666;
}
.select-options li[rel="hide"] {
  display: none;
}

.select-options li {
	margin-top:0px !important;
padding-right:10px !important;
padding-left:10px !important;
}

@media(min-width:1240px) {
	.select-styled, .select-options {
	width:21rem !important;
	}
}

@media(min-width:1240px) {
	.filter-select {
		/*margin-left:-130px !important;*/
	}
}

@media(min-width:780px) and (max-width:1239px) {
		.select-styled, .select-options {
	width:100% !important;
	}
}


@media(max-width:780px) {
	.select-styled {
		width:10rem !important;
	}
}


@media(max-width:680px) {
	.filter-select {
	flex-wrap:wrap;
}

		.select-styled, .select-options {
	width:100% !important;
	}

.select {
width:100%;
}

	.select:not(:first-child) {
margin-top:15px;
}

}

/* card layout */

.lp-hhq-article-card {
background:#fff !important;
background-image:none !important;
border-radius:0px !important;
box-shadow: 0 .125rem .25rem rgba(0,0,0,.075)!important;
}


@media (min-width: 980px) {
#postsContainer .card-holder-lp {
    width: calc(33% - 15px)!important;
    min-width: calc(33% - 15px)!important;
}
}

@media (min-width: 480px) and (max-width: 979px) {
    #postsContainer .card-holder-lp {
        width: calc(100% - 15px)!important;
        min-width: calc(100% - 15px)!important;
    }
}

.card-holder-lp {
	width: calc(100% - 15px);
    	min-width: calc(100% - 15px);
}


.card-holder-lp .featured-image {
	height:200px;
	width:100%;
	overflow:hidden;
}

.card-holder-lp .featured-image img{
	max-width:100%;
	object-fit:cover;
}

.lp-loader {
  display: grid;
  grid-template: 1fr 1fr/1fr 1fr;
  gap: 40%;
  width: 80px;
  aspect-ratio: 1/1;
  animation: rotate 2s linear infinite;
margin:0 auto;
}
.lp-loader .dot {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background-color: #fbaf27;
  animation: scale 2s infinite alternate;
}
.lp-loader .dot:nth-child(3) {
  order: 1;
}
.lp-loader .dot:nth-child(1) {
  animation-delay: -0.5s;
}
.lp-loader .dot:nth-child(2) {
  animation-delay: -1s;
}
.lp-loader .dot:nth-child(3) {
  animation-delay: -1.5s;
}
.lp-loader .dot:nth-child(4) {
  animation-delay: -2s;
}

@keyframes scale {
  0% {
    scale: 0.1;
  }
  100% {
    scale: 1;
  }
}
@keyframes rotate {
  0% {
    rotate: 0deg;
  }
  100% {
    rotate: 360deg;
  }
}