


.resource {
    border: 1px solid #ccc;
    /* padding: 10px; */
    border-radius: 5px;
    box-sizing: border-box;
}

.resource h5 {
    font-size: 1.5rem;
}

.resource p {
    font-size: 1rem;
}


.resource-box {
    position: relative;
    background-color: #faf5ed;
    border-radius: 4px;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,.12),0 1px 2px 0 rgba(0,0,0,.24);
    /* display: inline-block; */
    /* margin: 7px; */
    overflow: hidden;
    /* width: 230px; */
    width: 100%;
    height: 250px;
    /* min-width: 230px; */
    /* min-height: 260px; */
    transition: box-shadow .2s;
}

.resource-box .panel{
    display: block;
    /* width: 230px; */
    height: 100%;
    z-index: 9;
}

.resource-box .panel .img-title{
    border-radius: 4px;
    box-sizing: border-box;
    height: 100%;
    left: 0;
    overflow: hidden;
    white-space: normal;
    padding: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
} 

.resource-box .panel .img-title .thumbnail {
    height: 80%;
    /* margin: 1px auto 0; */
    width: 100%;
    padding: 0 16px;
}

.resource-box .panel .img-title .thumbnail  img{
    border-radius: 4px 4px 0 0;
    box-sizing: border-box;
    width: 100%;
    /* min-width: 100%; */
    /* height: auto; */
    object-fit: cover;
    object-position: top left;
    height: 100%;
}
.resource-box .panel .img-title .title {
    position: absolute;
    top: 0;
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #ededed; /* Corrected: 0px border is unnecessary */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    height: 25%;
    padding: 10px 10px 0;
    text-align: left;
    color: #333;
    font-size: 16px;
    font-weight: normal;
    /*white-space: nowrap;*/ /* Prevents text from wrapping forcing a single line.*/
    overflow: hidden; /* Ensures overflow is hidden */
    text-overflow: ellipsis; /* Adds "..." if text overflows */
    transition: 
        background-color 1s ease-in-out, 
        font-weight 1s ease-in-out, 
        box-shadow 1s ease-in-out, 
        border-bottom 1s ease-in-out;
    /* margin-bottom: 4px; */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Show up to 2 lines */
    -webkit-box-orient: vertical;
    word-break: break-word;
  
}
.resource-box .panel .img-title .title::first-letter{
    text-transform: uppercase;
}

/* .resource-box .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
} */


.resource-box .slide-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* background-color: rgba(0, 0, 0, 0.7); */
    background-color: rgba(255, 255, 255, 0.7);
    color: rgb(0, 0, 0);
    padding: 10px 10px 10px 10px;
    box-sizing: border-box;    
    text-align: start;
    height: 75%;
    z-index: 999;
    transition: transform 1s ease ,background-color 1s ease-in-out;
    transform: translateY(100%);
}
.resource-box .slide-panel .description {
    max-height: 6em; /* Adjust based on line-height example hight for 4line= (4) *line-height  */
    line-height: 1.2em; /* Adjust as needed */
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;    
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Show up to 4 lines */
    -webkit-box-orient: vertical;
    word-break: break-word; /* Prevents breaking mid-word */
    padding-top: 4px;    
}
.resource-box .slide-panel .description::first-letter{
    text-transform: uppercase;
}
.resource-box .slide-panel .additional-info > div {
    display: inline-block;
    color: #878787;
    font-size: 18px;
    padding: 0 5px 0 0;
  
}
.resource-box .slide-panel>.additional-info > div::first-letter{
    text-transform: uppercase;
}
.resource-box .bottom-panel  {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 999;
    width: 100%;
    height: 40px;
    /* display: flex;
    justify-content: center; */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    width: 100%;
}



.resource-box #resource-checkbox  {
    width:20px;
    border-radius: 50%;   
}

.resource-box:hover > .slide-panel {
    transform: translateY(0);
   
}
.resource-box:hover > .slide-panel{
    background-color: rgba(255, 255, 255, 0.90);
} 
.resource-box:hover >  .panel .img-title .title {
    background-color: rgba(255, 255, 255, 0.90);
    font-weight: 600;
    border-bottom: 2px solid #ededed;    
    box-shadow: 0 2px 6px 0 rgba(0,0,0,0);
} 


/* Hide the default checkbox */
.custom-checkbox input[type="checkbox"] {
    display: none;
}

/* Create a custom checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    
}

.custom-checkbox .checkmark {
    position: relative;
    width: 20px;
    height: 20px;
    background-color: #fff; /* Default background color */
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 8px;
    transition: background-color 0.3s;
    z-index: 1; /* Ensure it is above the pseudo-element */
}

/* Change background color when checked */
.custom-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: #385898; /* Background color when checked */
    border-color: #385898;
}

/* Create the checkmark/indicator (hidden when not checked) */
.custom-checkbox .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Show the checkmark when checked */
.custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
    display: block;
}
/* Add circle background on hover */
.custom-checkbox .checkmark::before {
    content: "";
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.1); /* Semi-transparent background */
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0; /* Ensure it is below the checkbox */
}


.custom-checkbox .checkmark:hover::before {
    opacity: 1;
}

/* Button styles */
.panel-button {
    display: flex;
    align-items: center;
    border: none;
    background: none;
    font-size:large;
    cursor: pointer;    
    transition: color 0.3s;
    color: #e33030;   
    margin:8px; 
}

.panel-button:hover {
    color: #385898; /* Color on hover */
}

.panel-button i {
    font-size: large; /* Size of the icon */
    /* margin-right: 8px;*/ /* Space between icon and text */
}

.resource-box  .icon i{
    /* position: absolute; */
    bottom: 0;
    left:42%;
    font-size: 22px;
    color: white;
    padding: 8px 10px;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    background: #f7346f;
    opacity:0;
    transition: opacity 1s ease-in-out;
}


.resource-box:hover .icon i 
{    
    opacity: 1;
}


/* Add circle shadow on hover */
/* .custom-checkbox .checkmark:hover { */
    /* box-shadow: 0 0 10px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1); */
    /* border-radius: 50%; */
    /* box-shadow: 1 0 20px rgba(86,114,196,.8), 0 0 20px rgba(86,114,196,.4); */
    
/* }  */


.navigation {
    margin-top: 20px;
}

.resource button {
    /* padding: 10px 20px; */
    font-size: 1em;
    cursor: pointer;
}

/* Existing styles remain the same */

.pagination {
display: flex;
margin: 0 20px;
}

.pagination button {
margin: 0 5px;
padding: 5px 10px;
font-size: 1em;
cursor: pointer;
}

.pagination .page-number {
margin: 0 5px;
padding: 5px 10px;
cursor: pointer;
background-color: #ddd;
border: 1px solid #ccc;
border-radius: 3px;
}

.pagination .page-number.active {
background-color: #385898;
color: white;
}