/* Buttons */
.wl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.6rem 1.5rem;
	border-radius: 6px;
	font-weight: 600;
	letter-spacing: 0.3px;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	border: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: var(--wl-shadow-sm);
}

.wl-btn-primary {
	background-color: var(--wl-color-blue);
	color: var(--wl-color-white);
}

.wl-btn-primary:hover {
	background-color: var(--wl-color-primary);
	color: var(--wl-color-white);
}

/* Cards */
.wl-card {
	background-color: var(--wl-color-white);
	border-radius: var(--wl-radius-lg);
	box-shadow: var(--wl-shadow-sm);
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.2s;
	border: 1px solid var(--wl-color-border);
}

.wl-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--wl-shadow-md);
}

.wl-card-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.wl-card-content {
	padding: 1.5rem;
}

.wl-card-title {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
}

.wl-card-title a {
	color: var(--wl-color-primary);
}

.wl-card-title a:hover {
	color: var(--wl-color-blue);
}

.wl-card-meta {
	font-size: 0.875rem;
	color: var(--wl-color-muted);
	margin-bottom: 1rem;
}

/* Badges */
.wl-badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: var(--wl-radius-full);
	font-size: 0.75rem;
	font-weight: 600;
	background-color: var(--wl-color-background);
	color: var(--wl-color-primary);
}

/* Sidebar Latest Articles */
.wl-sidebar-latest-list {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.wl-sidebar-latest-item {
	display: flex;
	gap: 1rem;
	align-items: center;
	padding: 0.5rem 0;
	transition: background 0.2s;
	border-radius: var(--wl-radius-md);
}

.wl-sidebar-latest-item:hover {
	background-color: var(--wl-color-background);
}

.wl-sidebar-latest-thumb {
	width: 70px;
	height: 70px;
	flex-shrink: 0;
	border-radius: var(--wl-radius-md);
	overflow: hidden;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.wl-sidebar-latest-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.wl-sidebar-latest-item:hover .wl-sidebar-latest-thumb img {
	transform: scale(1.05);
}

.wl-sidebar-latest-content {
	flex-grow: 1;
}

.wl-sidebar-latest-title {
	font-size: 0.9rem;
	margin: 0 0 0.35rem;
	line-height: 1.4;
	font-weight: 600;
}

.wl-sidebar-latest-title a {
	color: var(--wl-color-primary);
	text-decoration: none;
	transition: color 0.2s;
}

.wl-sidebar-latest-title a:hover {
	color: var(--wl-color-blue);
}

.wl-sidebar-latest-date {
	font-size: 0.75rem;
	color: var(--wl-color-muted);
	font-weight: 500;
}

/* Sidebar E-books List */
.wl-sidebar-ebook-list li {
	margin-bottom: 0.5rem;
}

.wl-sidebar-ebook-list a {
	padding: 0.5rem;
	border-radius: var(--wl-radius-md);
}

.wl-sidebar-ebook-list a:hover {
	background-color: var(--wl-color-background);
}

.wl-btn-block {
	display: block;
	width: 100%;
	text-align: center;
	margin-top: 1.5rem;
}

/* Breadcrumbs */
.wl-breadcrumbs {
	margin-bottom: 2rem;
	background-color: var(--wl-color-white);
	padding: 1rem 1.5rem;
	border-radius: var(--wl-radius-md);
	box-shadow: var(--wl-shadow-sm);
	border: 1px solid var(--wl-color-border);
}

.wl-breadcrumb-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	font-size: 0.9rem;
}

.wl-breadcrumb-item {
	color: var(--wl-color-muted);
	display: flex;
	align-items: center;
}

.wl-breadcrumb-item a {
	color: var(--wl-color-primary);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s;
}

.wl-breadcrumb-item a:hover {
	color: var(--wl-color-blue);
}

.wl-breadcrumb-item.wl-current {
	color: var(--wl-color-muted);
}

.wl-breadcrumb-separator {
	margin: 0 0.75rem;
	color: var(--wl-color-border);
	font-weight: 400;
}

/* Sidebar Menu Accordion */
.wl-sidebar-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}
.wl-sidebar-menu li {
	position: relative;
	margin-bottom: 0.25rem;
}
.wl-sidebar-menu a {
	display: block;
	padding: 0.5rem;
	color: var(--wl-color-primary);
	text-decoration: none;
	transition: color 0.2s;
	font-weight: 500;
}
.wl-sidebar-menu a:hover {
	color: var(--wl-color-blue);
}
.wl-sidebar-menu .menu-item-has-children {
	position: relative;
}
.wl-submenu-toggle {
	position: absolute;
	right: 0.5rem;
	top: 0.5rem;
	cursor: pointer;
	padding: 0.25rem;
	transition: transform 0.3s;
	color: var(--wl-color-muted);
	display: flex;
	align-items: center;
	justify-content: center;
}
.wl-submenu-toggle:hover {
	color: var(--wl-color-blue);
}
.wl-sidebar-menu .menu-item-has-children.open > .wl-submenu-toggle {
	transform: rotate(180deg);
}
.wl-sidebar-menu .sub-menu {
	list-style: none;
	padding-left: 1.5rem;
	margin: 0;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
}
.wl-sidebar-menu .sub-menu a {
	font-weight: 400;
	font-size: 0.9em;
}
