/* ===============================
   MEDIA LISTING WRAPPER
================================ */
#media-listing-wrapper {
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 0px;
}

/* ===============================
   FILTERS BAR
================================ */
.media-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    gap: 15px;
}

#media-type-filter {
    width: 335px;
    height: 38px;
    padding: 7px 14px;
    border-radius: 28px;
    font-size: 16px;
    background: #fff;
	line-height: 20px;
	position:relative;
}

.media-type-filter {
    width: 338px;
    height: 38px;
    border: 1px solid #5d5d5d5c;
    border-radius: 28px;
    background: #fff;
	line-height: 20px;
	position:relative;
}


.media-type-filter::after {
  content: "\25BE";
  position: absolute;
  right: 8px;   /* ← THIS is your margin */
  top: 50%;
  transform: translateY(-50%);
  font-size: 27px;
}

#media-search {
    width: 667px;
    padding: 10px 14px;
    height: 38px;
    border: 1px solid #5d5d5d5c;
    border-radius: 29px;
    font-size: 16px;
}

/* ===============================
   MEDIA GRID
================================ */
#media-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 18px; /* horizontal gap */
    row-gap: 40px;    /* vertical gap */
}

/* ===============================
   MEDIA CARD
================================ */
.media-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.media-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.campus_corp .e-n-accordion-item-title-icon svg{
	display:none;
}
.campus_corp .e-n-accordion-item{
	margin-top: 20px;
}
.campus_corp .e-n-accordion-item ul li{
	color:#fff;
}
.campus_corp .e-n-accordion-item .e-n-accordion-item-title-text img{
    position: absolute;
    left: 0;
    z-index: 9;
    width: 48px;
    top: 15px;
}
.campus_corp .e-n-accordion-item summary[aria-expanded="true"] .e-n-accordion-item-title-text img{
    width: 76px;
    left: 18px;
}

/* ===============================
   MEDIA IMAGE
================================ */
.media-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

select {
  appearance: none;
  -webkit-appearance: none; /* Chrome, Safari */
  -moz-appearance: none;    /* Firefox */
  background-image: none;
}
/* ===============================
   MEDIA CONTENT
================================ */
.media-content {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Tag / Category */
.media-content .tag {
    font-size: 14px;
    font-weight: 500;
    color: #c62828;
}

/* Title */
.media-content h4 {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    color: #111111;
    margin: 0;
}

/* Description */
.media-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    margin: 0;
}

/* Date */
.media-content .date {
    font-size: 12px;
    color: #2E2E2E;
    margin-top: auto;
}

/* ===============================
   PAGINATION
================================ */
#media-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 15px;
}

.page-btn {
    padding: 8px 14px;
    font-size: 14px;
    border: 1px solid #dddddd;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background: #f5f5f5;
}

.page-btn.active {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

/* ===============================
   RESPONSIVE
================================ */

/* Tablet */
@media (max-width: 991px) {
    #media-results {
        grid-template-columns: repeat(2, 1fr);
    }

    .media-filters {
        flex-direction: column;
        align-items: stretch;
    }

    #media-type-filter,
    #media-search {
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 575px) {
    #media-results {
        grid-template-columns: 1fr 1fr;
    }
	.media-type-filter {
		width: 100%;
	}
	#media-listing-wrapper {
		max-width: 100%;
		margin: 0 auto;
		padding: 0px 0px;
	}
	
	.media-filters {
		margin-bottom: 20px;
	}
	
    .media-card img {
        height: 200px;
    }
	
	.media-card{
		justify-content: space-between;
    	flex-direction: column;
	}
	
	.media-content {
		padding: 8px 8px 8px;
		gap: 4px;
	}
	
	.media-content h4 {
		font-size: 14px;
	}
	
	.media-content .tag {
		font-size: 12px;
	}
	
	#media-pagination {
		gap: 2px;
	}
	
	.custom-pagination .page-num {
		min-width: 30px!important;
		font-size: 12px!important;
	}
	
	.custom-pagination .page-btn {
		padding: 0 10px!important;
		border: 1px solid #222;
		font-size: 13px!important;
	}
    
    .campus_corp .e-n-accordion-item .e-n-accordion-item-title-text img {
    position: absolute;
        left: 0;
        z-index: 9;
        width: 38px;
        top: 15px;
    }
    
    .campus_corp .e-n-accordion-item {
        margin-top: 10px;
    }
    
    .campus_corp .e-n-accordion-item summary[aria-expanded="true"] .e-n-accordion-item-title-text img{
        width: 50px;
        left: 10px;
    }
    
    .campus_corp .e-n-accordion-item ul li{
        font-size:14px;
    }
	
}

.custom-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 40px 0;
    font-family: inherit;
}

.custom-pagination .page-btn {
    min-width: 48px;
    height: 46px;
    padding: 0 16px;
    border: 1px solid #222;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    background: #fff;
    transition: all 0.2s ease;
}

.custom-pagination .page-num {
    min-width: 48px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid #222;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    background: #fff;
    transition: all 0.2s ease;
}

.custom-pagination .page-btn {
    font-weight: 500;
}

.custom-pagination .page-num {
    border: none;
    color: #222;
}

.custom-pagination .page-num:hover {
    text-decoration: underline;
}

.custom-pagination .active {
    background: linear-gradient(135deg, #0c0f3a, #1e2bb8);
    color: #fff;
    border: none;
    font-weight: 600;
}

.custom-pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}

.custom-pagination .dots {
    padding: 0 8px;
    font-size: 20px;
}
.learn-btn:hover{
	background: #fff!important;
	color: #801323!important;
}