/**
 * Theme Name:     Hello Elementor Child
 * Author:         Elementor Team
 * Template:       hello-elementor
 * Text Domain:	   hello-elementor-child
 * Description:    A lightweight and minimalist WordPress theme for Elementor page builder.
 */

/* Tabs */
/* Container for the tabs */
.category-tabs {
    display: flex;
    gap: 15px;
    padding-bottom: 30px;
    list-style: none;
    justify-content: center;
	padding-inline-start: 0px;
}

.category-tab {
	display: inline-block;
	padding: 8px 20px;
	text-decoration: none;
	font-size: 14px;
	transition: all 0.3s ease; /* Smooth hover and active transitions */
    text-decoration: none;
    font-weight: 500;
    color: #A3A3A3;
    border-radius: 12px;
    border: 1px solid #D6D6D6;
    background: rgba(213, 225, 220, 0.10);
}

.category-tab:hover {
    color: #17B772;
    border-color: #17B772;
}

.category-tab.active {
	background-color: #17B772; /* Active background color */
	color: #ffffff; /* Active text color */
	border-color: #17B772; /* Active border color */
}

/* Styling for Load More button */
.button-container {
	display: flex;
	justify-content: center; /* Centers horizontally */
	align-items: center; /* Centers vertically if needed */
	/* padding: 20px; Optional padding around the button */
}

.load-more-posts:disabled {
	background-color: #ccc;
	cursor: not-allowed;
}

/* Posts */
.post-item {
    margin-bottom: 20px;
}

/* Clearance */
.sales-category-posts-container{
	min-height: 640px;
}

.sales-category-posts-container .post-item{
	height: fit-content;
}

.sales-category-posts-container .post-item a{
	text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
	margin-bottom: 0;
}

/* Ads */
.ads-post {
    background: #f2f2f2;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

/* Style for the ad posts */
.category-posts-container {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
	margin-bottom: 40px!important;
}

.category-posts-container > p {
    text-align: center;
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 15px;
}

.post-item {
	position: relative; /* Ensure the label is positioned correctly */
	display: flex;
	flex-direction: column;
	margin-bottom: 0px;
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.post-thumbnail {
	width: 100%;
	height: 0;
	padding-top: 100%; /* Aspect ratio 4:3 */
	position: relative;
	overflow: hidden;
}

.post-thumbnail .featured-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 10px 10px 0 0;
}

.post-info {
	background-color: #fff;
	padding: 15px;
	position: relative;
	height: 100%;
}

.post-info h4{
	margin-top: 0;
	margin-bottom: 0;
}

body .post-info h4 a, body .post-info h4 {
    font-size: 16px;
    font-weight: 600;
	margin-bottom: 5px;
    line-height: normal;
}

.post-info p {
	font-size: 14px;
	color: #555;
	line-height: normal;
	margin-bottom: 25px;
}

.popup-icon {
    font-size: 20px;
    text-align: right;
    cursor: pointer;
    width: fit-content;
    margin-left: auto;
    display: block;
    position: absolute;
    right: 15px;
    bottom: 15px;
}

.popup-icon img{
	width: 18px;
}

.ad-post .popup-icon img {
    filter: brightness(0) invert(1);
}

/* Hover effect */
.post-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.post-item a {
	color: inherit;
	text-decoration: none;
}

/* Ads label at top-left with black transparent overlay */
.ads-label {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    z-index: 10;
    color: #FFF;
    font-family: Inter;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 15px;
    border-radius: 6px;
    background: rgba(1, 1, 1, 0.20);
}

.ad-post .post-info{
	background-color: #17B772; /* Dark Green */
}

.ad-post .post-info h4 a, .ad-post .post-info h4, .ad-post .post-info p {
	color: white!important;
}

/* Pagination Container */
.pagination-container {
    margin-left: auto;
    width: fit-content;
}

/* Pagination Styling */
.pagination {
	display: inline-flex;        /* Inline Flex for aligning elements in a row */
	list-style-type: none;       /* Remove default list styles */
	margin: 0;                   /* Remove margin */
	padding: 0;                  /* Remove padding */
}

.pagination a {
	padding: 4px;
	margin: 0 5px;               /* Space between each page link */
	color: #FFFEFD80;                /* White text color */
	text-decoration: none;
}

.pagination a:hover {
	color: white;                /* Keep text white on hover */
}

.pagination .disabled {
	pointer-events: none;         /* Disable click event */
}

.pagination .prev-page, .pagination .next-page {
	font-weight: bold;            /* Bold for next/previous buttons */
	color: #FFFEFD80;                 /* White color for arrows */
}

/* Optional: Style for active page number */
.pagination .active {
	color: white;                
}

.elementor .pagination img{
    width: 11px;
    height: 11px;
}

/* Catalogue listing */
.catalogue-listing-container {
	/* margin: 20px 0; */
}

.catalogue-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr); /* 3 items per row */
	gap: 20px; /* Spacing between items */
}

.catalogue-item {
	display: flex;
	flex-direction: column;
	height: 100%; /* Ensure full height of the container */
	background-color: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.catalogue-featured-image {
    display: flex;
    width: 100%;
    height: 0;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
}

.catalogue-featured-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.catalogue-category-info {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 10px;
	background-color: #FFFFFF;
}

.category-icon {
	width: 30px;
	height: 30px;
	background-size: cover;
	background-position: center;
	border-radius: 50%;
	margin-right: 10px; /* Space between icon and category name */
}

.category-name {
	font-size: 16px;
	font-weight: bold;
	color: #333;
}

.catalogue-listing-container .paid-ads-banner img{
	border-radius: 10px 0 0 10px;
}

.catalogue-listing-container .banner-description{
	border-radius: 0px 10px 10px 0px;
}

.catalogue-listing-container .paid-ads-banner{
	border-radius: 10px;
}

.catalogue-listing-container .paid-ads-container{
	margin-bottom: 30px;
}

.catalogue-listing-container .button-container button{
	margin-top: 0px;
}

.catalogue-category-info .category-name {
    font-size: 16px;
    margin: 0;
    line-height: normal;
}

.catalogue-listing-container .paid-ads-container:nth-of-type(odd) > div,
.catalogue-listing-container .paid-ads-container:nth-of-type(odd) .banner-description {
    background: #6D97D2;
    color: white;
}

.catalogue-listing-container .paid-ads-container:nth-of-type(odd) h3{
	color: white;
}

.button-container button{
	margin: 20px;
}

.load-more-catalogues {
	display: inline-block;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: bold;
	color: #ffffff; /* White text */
	background-color: #2ecc71; /* Green background */
	border: 2px solid #2ecc71; /* Green border */
	border-radius: 20px; /* Rounded corners */
	cursor: pointer; /* Pointer cursor on hover */
	text-align: center;
	text-decoration: none; /* Remove underline */
	transition: all 0.3s ease; /* Smooth hover transition */
}

.load-more-catalogues:hover {
	background-color: #27ae60; /* Slightly darker green on hover */
	border-color: #27ae60; /* Match border color with background on hover */
}

.load-more-catalogues:disabled {
	background-color: #ccc;
	cursor: not-allowed;
}

.paid-ads-container {
	margin-top: 30px;
	display: flow-root;
	text-align: center;
}

/* Catalogue */
.catalogue-search-form {
	width: 80%;
}

.catalogue-search-form label {
	width: 100%;
}

.catalogue-search-form input[type="search"] {
	width: 100%;
	height: 45px;
    border-style: solid;
    border-width: 1px 1px 1px 1px;
    border-color: var(--e-global-color-secondary);
    border-radius: 8px 8px 8px 8px;
    padding: 12px;
	background: #FFF;
	outline: none;
	box-sizing: border-box;
	color: #000;
	outline: none;
	margin-bottom: 15px;
	font-size: 15px;
	line-height: normal;
}

.catalogue-search-form input[type="search"]::placeholder {
	color: #818181;
}

.catalogue-search-form button {
	width: 100%;
}

.catalogue-search-form button:hover {

}

/* Paid Ad Banner */
.paid-ads-banner{
	background: #ffc954;
    display: flex;
    flex-wrap: wrap;
}

.paid-ads-banner .banner-image{
	/* float: left; */
	/* width: 50%; */
	position: relative;
}

.paid-ads-banner img{
	border-radius: 10px!important;
	object-fit: cover;
}

.banner-description h3{
	margin-bottom: 10px;
}

.banner-description{
    flex: 1;
    min-width: 50%;
    padding: 20px;
    background: #ffc954;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
	text-align: left;
	min-height: 250px;
}

@media (max-width: 1000px) {
	.category-tabs{
		gap: 15px;
		list-style: none;
		justify-content: flex-start;
		padding-inline-start: 0px;
		overflow-x: scroll;
		width: 100%;
		margin: 0 10px 30px 10px;
		padding-bottom: 8px;
		padding-right: 20px;
	}

	.category-tabs a{ 
		text-wrap: nowrap;
	}
}

@media (max-width: 767px) {
	.catalogue-grid {
		grid-template-columns: repeat(2, 1fr); /* 2 items per row on smaller screens */
	}

	body .post-info h4 a, body .post-info h4 {
		font-size: 14px;
	}

	.post-info p{
		font-size: 13px;
		line-height: normal;
	}

	.post-info{
		padding: 10px;
	}

	.popup-icon img {
		width: 15px;
		height: 15px;
	}

	.category-tab {
		color: #17B772;
		border: 1px solid #17B772;
		background: rgba(69, 230, 161, 0.10);
	}
	
	.popup-icon {
		right: 10px;
		bottom: 10px;
	}

	.sales-category-posts-container{
		min-height: 100%;
		margin-bottom: 20px !important;
	}

	.pagination-container{
		display: none;
	}

	.category-posts-container{
		margin-bottom: 20px!important;
	}

	.post-item:hover {
		transform: none;
	}
}