.edx-featured-profiles-grid,
.edx-company-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px; /* space between items */
}

.edx-featured-profile-box,
.edx-profile-box{
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    min-height: 365px; /* adjust height as needed */
    display: flex;
    align-items: flex-end; /* keep content at bottom */
    padding: 15px;
    color: #fff; /* make text readable */
    position: relative;
}

.edx-featured-profile-box::before,
.edx-profile-box::before{
    position: absolute;
    content: '';
    border-radius: 20px;
    background-color: transparent;
    --background-overlay: '';
    background-image: linear-gradient(199deg, #FFFFFF00 18%, #000000 92%);
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.edx-profile-content{
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 15px 25px;
}

.edx-profile-content h3{
    font-family: "Poppins", Sans-serif;
    font-size: 20px;
    line-height: 30px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 5px;
}

.edx-profile-content a {
    color: #fff;
    text-decoration: none;
}

.edx-profile-content a:hover,
.edx-profile-content a:focus,
.edx-profile-content a:active,
.edx-company-content h3 a:hover,
.edx-company-content h3 a:focus,
.edx-company-content h3 a:active,
.edx-featured-profile-box:hover h3,
.edx-featured-profile-box:focus h3,
.edx-featured-profile-box:active h3{
    color: #ff5e33;
}

.edx-profile-content h4{
    font-family: "Poppins", Sans-serif;
    font-size: 12px;
    line-height: 22px;
    font-weight: 500;
    margin: 0;
    color: #ffffff;
}

.edx-profile-content h5{
    font-family: "Poppins", Sans-serif;
    font-size: 16px;
    line-height: 26px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.edx-profiles-slider .swiper-pagination,
.edx-profiles-slider .swiper-button-next,
.edx-profiles-slider .swiper-button-prev,
.edx-company-slider .swiper-pagination,
.edx-company-slider .swiper-button-next,
.edx-company-slider .swiper-button-prev {
    display: none !important;
}

/*==== Archieve Page ====*/
.profile-category-archive,
.company-category-archive{
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.edx-archive-title{
    padding: 100px 10px 0px;
    text-align: center;
}

.edx-archive-title h1{
    font-family: "Poppins", Sans-serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 52px;
    color: #0A2540;
}

.edx-archive-content{
    padding: 50px 10px 100px;
}

.edx-company-box {
    position: relative;
    padding: 25px 30px;
    border-radius: 10px;
    border: 1px solid #00000026;
	text-align: left;
}

.edx-fixed-height-company-box{
	min-height: 320px !important;
}

.edx-company-image{
	display: block;
	margin: 0 auto 20px;
	width:250px;
	height:150px;
}

.edx-company-image img{
	width:100%;
	height: 135px;
	object-fit: contain;
}

.edx-fixed-height-company-box .edx-company-image img{
	height: 135px !important;
}

.edx-company-content h3{
	font-family: "Poppins", Sans-serif;
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
    color: #0A2540;
    margin: 0 0 5px;
}

.edx-company-content h3 a{
	color: #0A2540;
}

.edx-company-content h4{
	font-family: "Poppins", Sans-serif;
    font-size: 16px;
    line-height: 26px;
    font-weight: 600;
    color: #0A2540;
    margin: 0 0 3px;
}

.edx-company-content p{
	font-family: "Poppins", Sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    color: #212529;
}

.edx-company-content span{
	font-family: "Poppins", Sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    color: #212529;
}

.edx-pagination {
    margin: 50px auto 0;
    width: 100%;
    text-align: center;
}

.page-numbers{
    font-size: 14px;
    line-height: 24px;
    color: #0A2540;
    font-weight: 500;
    border: 1px solid #0A2540;
    padding: 8px 10px;
    border-radius: 5px;
}

.page-numbers.current,
.page-numbers:hover,
.page-numbers:focus,
.page-numbers:active{
    background-color: #0A2540;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 1024px) {
    .edx-featured-profiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .edx-featured-profiles-grid {
        grid-template-columns: 1fr;
    }
}

@media all and (max-width: 480px) {
    
	.company-category-archive .edx-company-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
	
	.company-category-archive .edx-company-box {
		padding: 15px 15px;
	}
	
	.company-category-archive .edx-company-image {
		margin: 0px auto 10px;
		width: 100%;
		height: 100px;
	}
	
	.company-category-archive .edx-company-image img {
		height: 85px;
	}
	
	.company-category-archive .edx-company-content h3 {
		font-size: 14px;
		line-height: 24px;
	}
	
	.company-category-archive .edx-company-content p{
		display: none;
	}
	
	.company-category-archive .edx-company-content h4,
	.company-category-archive .edx-company-content span{
		font-size: 12px;
		line-height: 22px;
	}
	
}

@media all and (min-width: 480px) and (max-width: 768px) {
	.company-category-archive .edx-company-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}