.snippet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for desktop */
    gap: 30px;
	margin-bottom: 30px;
}
.snippet-box {
    border: 1px solid #eee;
    text-align: left;
    background-color: White;
    border-radius: 10px;
    transition: background-color 0.3s;
	box-shadow: 0px 0px 5px #eee;
}
.snippet-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 10px 10px 0 0 !important;
	border-bottom: 1px solid #eeeeee !important;
}
.sbox-innerbox{
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 10px;
	justify-content: space-between;
}
.sbox-title{
	font-size: 16px;
	font-weight: 500;
	padding: 0 15px;
}
.sbox-details{
	display: flex;
	justify-content: space-between;
	padding: 0 15px 15px 15px;
	align-items: flex-end;
	margin-top: auto;
}
.sbd-analytics{
	display: flex;
	gap: 10px;
	font-size: 12px !important;
	align-items: flex-end;
}
.snippet-like{
	padding: 0 !important;
	background: none !important;
	font-size: 12px !important;
	color: #0F2549;
	cursor: pointer;
}
.snippet-like.liked,
.snippet-like.liked:hover,
.snippet-like.liked:focus,
.snippet-like.liked:active {
    color: #f33535;
}

.snippet-like.liked i,
.snippet-like.liked:hover i,
.snippet-like.liked:focus i,
.snippet-like.liked:active i {
    color: #f33535;
}

.snippet-like.liked .like-count,
.snippet-like.liked:hover .like-count,
.snippet-like.liked:focus .like-count,
.snippet-like.liked:active .like-count {
    color: #f33535;
}
.sbd-btns{
	display: flex;
	gap: 10px;
}

.view-snippet, .edit-snippet{
	width: 50%;
	padding: 2px 10px;
	background-color: #F2F8FD;
	border-radius: 3px;
	color: #0F2549;
}
.view-snippet:hover, .edit-snippet:hover{
	background-color: #D9E9FD;
	color: #F33535;
	cursor: pointer;
}
#snippet-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    display: none;
    z-index: 999999;
    min-width: 70%;
    max-width: 80%;
    max-height: 700px;
    border-radius: 5px;
}
#popup-overlay {
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 999;
}
.sp-title{
	background-color: #F0F5F9;
	border-radius: 5px 5px 0px 0px;
	padding: 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
#snippet-title {
    font-weight: bold;
    font-size: 1.2em;
	color: #333333;
	margin-bottom: 0px !important;
}
.sl-icon{
    display: none;
    color: #ffffff;
    background-color: #333333;
    border-radius: 3px;
    padding: 7px;
}
.sl-icon:hover{
    background-color: #FD1C00;
}
.sl-btn{
    background-color: #333333;
}
.sl-btn:hover{
    background-color: #FD1C00;
}
.popup-ad{
	height: 90px;
	margin: 10px;
	padding: 5px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background-color: #f7f7f7;
}
.popup-ad-inner{
	width: 728px;
	height: 80px;
}
.popup-e-cr{
	padding: 5px 10px;
	background-color: #F0F5F9;
	border-radius: 0 0 10px 10px;
	color: #888888;
}
#filter-container{
    width: 100%;
	margin-bottom: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}
#filter-container form{
	display: flex !important;
	width: 50% !important;
	border-radius: 5px;
}
.fc-search-bar {
	width: 80% !important; /* Adjust width to leave space for the button */
	height: 40px !important;
    display: inline-block;
    padding: 6px !important;
    border: none !important;
    border-radius: 5px 0 0 5px !important;
    box-sizing: border-box;
	border: 1px solid #D9E9FD !important;
	border-right: none !important;
}
.fc-search-button {
    padding: 6px 15px;
	width: 20% !important;
	height: 40px !important; 
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 0 5px 5px 0 !important;
    cursor: pointer;
    transition: background-color 0.3s;
	border: 1px solid #F33535 !important;
	border-left: none !important;
}
.fc-search-button:hover{
	background-color: #0F2549 !important;
	border: 1px solid #0F2549 !important;
	border-left: none !important;
}
.fc-all-buttons{
	display:flex;
	gap: 2px;
}
.fc-latest-button, .fc-trending-button{
	padding: 6px 20px;
	height: 40px !important;
	background-color: #0F2549;
	color: white;
}
.fc-latest-button{
	border-radius: 5px 0 0 5px;
}
.fc-trending-button{
	border-radius: 0 5px 5px 0;
}
.fc-latest-button:hover, .fc-trending-button:hover{
	background-color: #F33535;
	color: white;
}
#search-button:hover {
    background-color: #005177;
}
.pagination-wrapper {
    gap: 10px;
    display: flex;
    justify-content: center;
	align-items: center;
}
.pagination-wrapper .page-numbers,
.pagination-wrapper .prev,
.pagination-wrapper .next{
	text-decoration: none !important;
	padding: 3px 7px;
	min-width: 40px;
	background-color: #EEF3F9;
	border-radius: 3px;
	display: flex;
	align-items: center;
	justify-content:center;
	color: #0F2549;
}
.pagination-wrapper .prev,
.pagination-wrapper .next{
	width: 85px !important;
}
.pagination-wrapper .prev:hover,
.pagination-wrapper .next:hover,
.pagination-wrapper .page-numbers:hover,
.pagination-wrapper .prev:hover,
.pagination-wrapper .next:hover{
	background-color: #F33535;
	color: white;
}
.pagination-wrapper  .current{
	background-color: #F33535;
	color: white;
}


@media (min-width: 869px) and (max-width: 1000px){
	 #snippet-popup{
        max-width: 80%;
        min-width: 95%;
    }
}
@media (min-width: 581px) and (max-width: 868px) {
    .snippet-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    }
    #snippet-popup{
        max-width: 95%;
        min-width: 90%;
    }
	.popup-ad-inner{
		width: 100%;
		height: 80px;
	}
	.sl-icon{
        display: inline-block;
    }
    .sl-btn{
        display: none;
    }
}
@media (max-width: 580px) {
    .snippet-grid {
        grid-template-columns: 1fr; /* 1 column for mobile */
    }
    #snippet-popup{
        max-width: 96%;
        max-height: 96%;
        min-width: 90%;
    }
	.popup-ad-inner{
		width: 100%;
		height: 80px;
	}
	.sl-icon{
        display: inline-block;
    }
    .sl-btn{
        display: none;
    }
	#filter-container{
		flex-direction: column !important;
		gap: 20px;
	}
	#filter-container form{
		width: 100% !important;
	}
	.fc-all-buttons{
		width: 100% !important;
	}
	.fc-latest-button, .fc-trending-button{
		width: 50% !important;
		color: white !important;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 5px;
	}
	.pagination-wrapper{
		flex-wrap: wrap !important;
	}
}