.filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 80px;
 padding-right: 300px;
    border-radius: 10px;
}

.filter-section input[type="text"] {
    flex: 2;
    padding: 18px 20px 18px 60px;
    border: 1px solid #ccc;
    border-radius: 100px;
    font-size: 16px;
    background: white url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="gray" viewBox="0 0 24 24" width="16px" height="16px"><path d="M10 2a8 8 0 105.3 14.7l4 4 .7-.7-4-4A8 8 0 0010 2zm0 2a6 6 0 110 12 6 6 0 010-12z"></path></svg>') no-repeat 30px center;
    background-size: 20px;
    color: #000000;
    background-color: #ffff;
    border: 1px solid white;
}

.filter-section input[type="text"]::placeholder {
    color: white;
}

.filter-section select {
    flex: 1;
    padding: 10px;
    border: 1px solid white;
    border-radius: 100px;
    font-size: 16px;
    background: transparent;
    color: white;
    appearance: none; /* Hides default dropdown arrow */
    -webkit-appearance: none; /* Hides default dropdown arrow on WebKit browsers */
    -moz-appearance: none; /* Hides default dropdown arrow on Firefox */
    position: relative;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24" width="24" height="24"><path d="M7 10l5 5 5-5z"/></svg>'); /* Custom arrow */
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
}

.filter-section select option {
    background: white;
    color: black;
}

/* Add extra space to prevent text overlapping with the dropdown arrow */
.filter-section select {
    padding-right: 40px;
}

.filter-section  select:focus {
    border-color: #ffffff;
}
.filter-section button {
    padding: 10px 50px;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 100px;
    cursor: pointer;
    font-size: 16px;
    flex: none;
}

.filter-section button:hover {
    background: rgba(255, 255, 255, 0.2);
}
.filter-section button:focus, button:hover {
    color: #fff;
	    background-color: #dcdcdc00;
  
}
/* Card and layout styles remain unchanged */

.cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 23px;
}
   
.card {
    background-color: #ffff;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card img {
    width: 100%;
    display:block;
  width:100%;
  height:auto;           
  aspect-ratio: 4 / 3;   
  object-fit: cover;     
  
}

.learn-more img {
    width: 20px;
    margin-left: 15px;
    height: 3px;
    object-fit: cover;
}


.card .badge {
    position: absolute;
    top: 30px;
    left: 20px;
    background: white;
    color: #F9A71A;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: bold;
}



.card-content h3 {
    color: #CB3794;
       font-family: "Gotham Black", Sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
	
}

.card-content h3 a{
    color: #CB3794;
       font-family: "Gotham Black", Sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
	
}


.card-content .tags {
       font-size: 15px;
  
    font-weight: 700;
    margin-bottom: 10px;
}




.card-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* space between cards */
}

.card {
    flex: 1 1 calc(33.333% - 20px); /* 3 cards per row, adjust as needed */
    display: flex;
    flex-direction: column;
/*     border: 1px solid #ddd; */
    box-sizing: border-box;
}

.card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
	padding: 20px;
}



.card-content p {
    flex-grow: 1; /* allows p to grow naturally */
    margin-bottom: 16px;
}

.learn-more {
    align-self: flex-start; /* keeps button from stretching */
    margin-top: auto; /* pushes to bottom if space available */
}


.empty-post{
 color: #ffff;
 font-size: 20px;
}
.learn-more {
    align-self: flex-end; /* Aligns the button to the right */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 50px;
    color: white;
    background: #e91e63;
    border-radius: 100px;
    text-decoration: none;
    width: fit-content;
    margin-top: auto; /* Pushes the button to the bottom if content above grows */
}

.learn-more svg {
    margin-left: 10px;
}

.learn-more:hover {
    background: #c2185b;
}

.pagination-container {
    position: absolute;
    bottom: -100px; 
    right: 0; 
    display: flex;
    gap: 5px; 
    border-radius: 100px;
    border: 1px solid #ffffff;
    background-color: #ffffff;
    padding: 0px 20px 0px 20px;
}

.pagination-container a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 5px;
    background-color: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius: 47px;
    transition: background-color 0.3s, color 0.3s;
}

.pagination-container a:hover {
    color: #000000;
}

.pagination-container a.active {
    text-decoration: underline;
    color: #000000;
}
/* Odd Cards */
.card:nth-child(odd) .learn-more {
    background-color: #CB3794;
    color: #fff;
}

.card:nth-child(odd) h3,
.card:nth-child(odd) p {
    color: #CB3794;
	
}

.tags:nth-child(odd) a{
		color: #3D447F;
}  

.tags:nth-child(even) a{

	color: #cb3794 
} 


.tags:nth-child(odd) a:hover{
	color: #cb3794;
}  

.tags:nth-child(even)  a:hover{
	color:#3D447F;
} 


/* Even Cards */
.card:nth-child(even) .learn-more {
    background-color: #3D447F;
    color: #fff;
}
.tags a:hover{
	 color:#cb3794;
}
.card:nth-child(even) h3 ,
.card:nth-child(even) a ,
.card:nth-child(even) p {
    color: #3D447F;
}

/* Common Button Styling */
.learn-more {
  
    transition: background 0.3s ease;
}


.card-content p {
    font-family : "Avenir", Sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 18px;
    margin-bottom: 15px;
	min-height: max-content;
}


.card-content a{
	font-family: "Gotham Black", Sans-serif;
    font-size: 17px;
    font-weight: 600;
}


.card-content .learn-more a:hover {
    color: #ffffff;

}





@media (max-width: 600px) {
    .filter-section {
        flex-direction: column;
		    padding-right: 0px;
    }

    .filter-section input[type="text"],
    .filter-section select,
    .filter-section button {
        flex: none;
        width: 100%;
        margin-bottom: 10px;
    }

    .cards-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
}
	.filter-section input[type="text"] {
  
    padding: 12px 14px 12px 52px;
	}
	
	
}
	


@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .cards-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
	.filter-section {
    
    padding-right: 0px;
	
}
	
	.filter-section input[type="text"] {
  
    padding: 10px 20px 10px 60px;
	}
}



@media (max-width: 768px) {
    .filter-section {
        position: relative;
        z-index: 9999 !important;
    }

    .filter-section *,
    .filter-section {
        pointer-events: auto !important;
    }
}

    @media (min-width: 601px) and (max-width: 767px) {

.filter-section {
 
    padding-right: 00px;
	
}
