/*
Theme Name: Ontario - Child
Author: GT3themes
Author URI: https://gt3themes.com
Description: -
Version: 1.0
Template: ontario
*/
@import url("../ontario/css/font-awesome.min.css");
@import url("../ontario/style.css");

.abba-widget-blog-categories-wrapper {
    display: flex;
	
	flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
	align-items: center;
    gap: 1rem;
	
	width: 100%;
	max-width: 1370px;
	height: auto;
	
	margin: 0 auto;
	padding: 0;
	
	@media screen and (max-width: 768px) {
		flex-direction: column;
		flex-wrap: nowrap;
	}
}

.category-card {
	display: flex;
    position: relative;
	
	flex: 1;
	justify-content: center;
	align-items: center;
	
    width: auto;
    height: 168px;
	
	background-color: whitesmoke;
    border-radius: 1rem;
    
    text-decoration: none;
	
	overflow: hidden;
	
	@media screen and (max-width: 768px) {
		width: 100%;
		min-height: 56px;
	}
}

/* The actual image */
.category-card-background {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease; /* Smooth zoom */
    z-index: 1;
	opacity: 0.75;
}

/* The Green Filter Overlay */
.category-card-overlay {
    --color: #08872b;

    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--color);
    mix-blend-mode: darken; /* Blends green into image shadows/highlights */
    opacity: 0.875;
    transition: opacity 0.4s ease;
    z-index: 2;
}

/* The Title Text */
.category-title {
    position: relative;
    z-index: 3;
    color: #ffffff !important;
    font-weight: bold;
    padding: 0.5rem;
    text-align: center;
    text-shadow: 0 0 0.25rem black;
	text-transform: uppercase;
}

/* Hover States */
.category-card:hover .category-card-background {
    transform: scale(1.125); /* The Zoom effect */
}

.category-card:hover .category-card-overlay {
    opacity: 0; /* Removes the green filter */
}

.abba-custom-document-list {
	display: flex;

	flex-direction: column;
	gap: 1rem;

	box-sizing: border-box;
	width: 100%;
	height: auto;

	margin: 0;
	padding: 0;

	list-style: none;

	li {
		margin: 0 !important;
		padding: 0 !important;

		&::before {
			content: none !important;
		}
	
		a {
			display: flex;
			position: relative;

			flex-direction: row;
			justify-content: initial;
			align-items: center;
			gap: 1rem;

			padding: 1rem;

			background-color: rgba(168, 168, 168, 0.375);
			border-radius: 1rem;
			color: var(--e-global-color-theme-header-font-color);

			text-decoration: none;
		}
	}
}
