
/* WRAPPER BODY AREA */
#wrapper-body{
	display: flex;
	margin: 90px auto;
    height: auto; /* or any height you prefer */
	min-width: 1200px;
	max-width: 1260px;
	gap: 15px;
	font-family: 'Roboto', sans-serif;
	color: #333;
}
/* SIDEBAR */
#wrapper-body #side{
	flex-grow: 0;
	margin: 0;
	width: 25%;
	height: 550px !important;
	position: sticky;
	top: 130px; 
	background-color: #f6f6f6;
	border-radius: 16px;
	box-shadow: -0px 2px 3px -1px rgb(136, 136, 136);	

}
#wrapper-body #side #container{
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items:flex-start;
	gap: 0px;
	margin: 25px;
	height: auto;
	padding: 0;
}
#wrapper-body #side #container p.title{
	font-weight: bold;
	margin: 0;
	font-size: 20px;
	letter-spacing: 0px;
	color:#000;
	padding-top: 15px;
	padding-bottom: 15px;

}
#wrapper-body #side #container #searchbox{
	display: inline-block;
	width: 100%;
	height: 40px;
	border-radius: 15px;
	background-color: #fff;
	border: 1px solid #ccc;
}
#wrapper-body #side #container #searchbox #search{
	width: 90%;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	outline: none;
}

#wrapper-body #side #container #searchbox button{
	display: none;
}

#wrapper-body #side #container #items{
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
	width: 100%;
}
#wrapper-body #side #container #items .item{
	 display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 15px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
/* Hide the browser's default checkbox */
#wrapper-body #side #container #items .item input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Hide the browser's default checkbox */
#wrapper-body #side #container #items .item input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom checkbox */
#wrapper-body #side #container #items .item .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 19px;
  width: 19px;
  background-color: #fff;
  border: 2px solid #333;
}

/* On mouse-over, add a grey background color */
#wrapper-body #side #container #items .item:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
#wrapper-body #side #container #items .item input:checked ~ .checkmark {
  background-color: #FEBA17;
}

/* Create the checkmark/indicator (hidden when not checked) */
#wrapper-body #side #container #items .item .checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
#wrapper-body #side #container #items .item input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
#wrapper-body #side #container #items .item .checkmark:after {
  left: 6px;
  top: 5px;
  width: 5px;
  height: 5px;
  border: solid #333;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
} 
#wrapper-body #side #container #items .item span{
}

#wrapper-body #side #container #items .item span{
	width: 90%;
}

/* CONTENT */
#wrapper-body #content{
	flex-grow: 1;
	width: 65%;
	min-height: 100vh;
	max-height: auto;	
	border-radius: 16px;
	background-color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items:flex-start;
	gap: 20px;
}
#wrapper-body #content #top{
	width: 100%;
	height:auto;	
	background-color: #fff;
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items:center;
	gap: 10px;
}
#wrapper-body #content #top .info{
	padding: 5px 15px 5px 15px;
	font-family: font8;
	font-size: 16px;
	color:#fff;
	text-align: center;
	white-space:pre;
  	word-break:break-word;
	border-radius: 2px;
	background-color: #333;
}
#wrapper-body #content #top .cancel{
	padding: 5px 15px 5px 15px;
	font-family: font8;
	font-size: 16px;
	color:#fff;
	text-align: center;
	white-space:pre;
  	word-break:break-word;
	border-radius: 2px;
	background-color: #333 ;
}
#wrapper-body #content #top .cancel:hover{
	color:#fff;
	background-color: #333;
}
#wrapper-body #content #body{
	width: 100%;
	height: auto;	
	background-color: #fff;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items:flex-start;
	flex-wrap: wrap;
	gap: 15px;
}
#wrapper-body #content #body a #course{
	min-width: 270px;
	max-width: 290px;
	height: 440px;	
	flex: 0 1 auto;
	border-radius: 16px;
	background-color: #f6f6f6;
	box-shadow: -0px 2px 3px -1px rgb(136, 136, 136);	
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items:flex-start;
	gap: 10px;
	overflow: hidden;
	flex: 1;
	position: static;
}
#wrapper-body #content #body a #course .image{
	width: 100%;
	height: 45%;
	margin: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items:flex-start;
	overflow: hidden;
	background-color: #666;
}

#wrapper-body #content #body a #course .image .price{
	align-self: flex-end;
	text-align: right;
	font-size: 15px;
	font-weight: bold;
	padding: 7px;
	color: #333;
	background-color: #FEBA17;
	border-radius: 20px;
	letter-spacing: 0.5px;
	margin: 20px 15px 0px 15px;
}
#wrapper-body #content #body a #course .category-level{
	width: 90%;
	height: 40px;		
	font-size: 14px;
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items:center;
	gap: 5px;
	padding: 0px 15px 0px 15px;
}
#wrapper-body #content #body a #course .category-level .category{
	font-weight: bold;
	border-radius: 6px;
	padding: 5px;
	color: #dca72c;
}
#wrapper-body #content #body a #course .category-level .level{
	border-radius: 6px;
	padding: 5px;
	color: #666;
}
#wrapper-body #content #body a #course .title{
	width: 90%;
	min-height: auto;
	max-height: 46px;	
	overflow: hidden;	
	font-size: 18px;
	font-weight: bold;
	gap: 5px;
	padding: 0px 15px 0px 15px;
}
#wrapper-body #content #body a #course .description{
	width: 90%;
	min-height: auto;
	max-height: 65px;	
	overflow: hidden;	
	font-size: 15px;
	line-height: 21px;
	letter-spacing: -0.5px;
	color: #666;
	gap: 5px;
	padding: 0px 15px 0px 15px;
}
#wrapper-body #content #body a #course .rating-views{
	width: 90%;
	height: 40px;		
	font-size: 14px;
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items:center;
	gap: 5px;
	padding: 0px 15px 0px 15px;
}
#wrapper-body #content #body a #course .rating-views .rating{
	flex-grow: 1;
	padding: 5px;
}
#wrapper-body #content #body a #course .rating-views .views{
	text-align: right;
	font-size: 15px;
	font-weight: bold;
	padding: 7px;
	color: #333;
	background-color: #fff;
	border-radius: 10px;
	letter-spacing: 0.5px;
}
#wrapper-body #content #bottom{
	width: 100%;
	height: auto;	
	background-color: #fff;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items:flex-start;
	gap: 20px;
}
#wrapper-body #content #bottom .pagination {
	margin: 20px 0;
	display: flex;
	justify-content: center;
	list-style: none;
	padding: 0;
}

#wrapper-body #content #bottom .pagination li {
	margin: 0 4px;
}

#wrapper-body #content #bottom .pagination a,
#wrapper-body #content #bottom .pagination span {
	display: block;
	padding: 8px 16px;
	text-decoration: none;
	border-radius: 4px;
	border: 1px solid #ddd;
	color: #333;
	transition: all 0.3s;
}

#wrapper-body #content #bottom .pagination a:hover {
	background-color: #f0f0f0;
}

#wrapper-body #content #bottom .pagination .active {
	background-color: #FEBA17;
	color: 333;
	border-color: #FEBA17;
}

#wrapper-body #content #bottom .pagination .disabled {
	color: #aaa;
	pointer-events: none;
	border-color: #ddd;
}

@media only screen and (max-width: 768px) {
    #wrapper-body {
        flex-direction: column;
        margin: 130px auto 30px;
        min-width: unset;
        max-width: 100%;
        padding: 0 15px;
        gap: 25px;
    }

    #wrapper-body #side {
        width: 100%;
        height: auto !important;
        position: static;
        top: unset;
    }

    #wrapper-body #content {
        width: 100%;
        min-height: unset;
    }

    #wrapper-body #content #top {
        flex-wrap: wrap;
        gap: 8px;
    }

    #wrapper-body #content #body a #course {
        min-width: unset;
        max-width: 100%;
        width: 100%;
        height: auto;
    }

    #wrapper-body #content #body a #course .image {
        height: 200px;
    }

    #wrapper-body #content #bottom .pagination {
        flex-wrap: wrap;
    }

    #wrapper-body #content #bottom .pagination li {
        margin: 4px;
    }
}