.published-resources-container {
    padding: 0 2%;
}

.filter-panel {
    /* background-color: #f8f9fa; */
    padding: 20px;
    border-right: 1px solid #ddd;
}

.content-panel {
    /* background-color: #fff; */
    padding: 20px;
}

.resource-list {
    display: grid;
    gap: 20px;
}


@media (min-width: 1200px) {
    .resource-list {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .resource-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .resource-list {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media screen and (max-width: 767.98px) and (min-width:500px) {
    .resource-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-panel {
        display: none;
    }
    .resource-top-panel {
        display: flex;
        flex-direction: column;                
    }

    
}

@media screen and (max-width: 499.98px) {
	
    .resource-list {
        /* grid-template-columns: 1fr; */
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-panel {
        display: none;
    }
    .resource-top-panel {
        display: flex;
        flex-direction: column;                
    }

    
}

.resource-top-panel {
    display: flex;
    justify-content: space-between;
}

.item-record-filter-icon{
     display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}
.action-sort-panel {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap:20px;
}

.filter-panel {
    display: block;
}



.pagination {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.page-numbers button {
    margin: 0 5px;
}

.subject-category {
    list-style-type: none;
    padding-left: 0;
}

.subject-category li {
    margin-left: 20px;
}

.subject-category input[type="radio"] {
    margin-right: 5px;
}
.custom-col {
   border: 0;
}

.clear-filters {
    background-color: #f44336; /* Red background */
    color: white; /* White text */
    border: none; /* Remove border */
    padding: 10px 20px; /* Padding for the button */
    font-size: 16px; /* Font size */
    cursor: pointer; /* Pointer cursor on hover */
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s ease; /* Smooth transition */
}
.clear-filters:hover {
    background-color: #d32f2f; /* Darker red on hover */
}

.grade-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.grade-option {
    padding: 10px 15px;
    background-color: #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.grade-option.selected {
    background-color: #007bff;
    color: white;
}

.grade-option.selected .close-icon {
    display: inline;
}

.grade-option .close-icon {
    display: none;       
    color: white;
    font-weight: bold;
    cursor: pointer;
    margin-left:5px;
}

/* Collapsible Panel */
.filter-container {
    /* background: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 10px;
    border-bottom: 2px solid #ddd; */
    max-height: 500px;
    position: relative;
    transition: max-height 0.9s ease-out;
}
.filter-container .header{
    display: flex;
    justify-content: space-between;
}

/* Collapse button */
.collapse-btn {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    border: 2px solid transparent; /* Invisible border initially */
    background: transparent;
    cursor: pointer;
    outline: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    background: rgba(255, 20, 147, 0.03); /* Light pink tint */
    
}

.collapse-btn:hover {
    color: #ff1493; /* Deep Pink */
    transform: scale(1.1); /* Slightly enlarges on hover */
    border: 1px solid rgba(255, 20, 147, 0.06); /* Square boundary appears */
    background: rgba(255, 20, 147, 0.04); /* Light pink tint */
    
}

.collapse-btn:active {
    transform: scale(0.9); /* Slight click effect */
    /* border-radius: 50%; */
}

.filter-collapsed .collapse-btn {
    color: #ff4500; /* Orange Red when expanded */
    transform: rotate(180deg);
}

/* Breadcrumb */
.breadcrumb {
    font-size: 14px;
    margin-bottom: 10px;
}

.breadcrumb a {
    text-decoration: none;
    color: #007bff;
    cursor: pointer;
}

/* Fancy Card Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    padding: 10px;
}

.menu-item {
    text-align: center;
    background: white;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    padding: 10px;
    transition: transform 0.2s ease-in-out;
}

.menu-item:hover {
    transform: scale(1.05);
}

.menu-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

/* Responsive for Mobile */
@media (max-width: 600px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
}

/* Hide panel when collapsed */
.filter-collapsed {
    max-height: 30px !important;
    overflow: hidden;
} 