/* === Base Module Styling === */
section[data-module="az-post-grid-filtering"] {
}

section[data-module="az-post-grid-filtering"] .image-bg {
    background-color: #cccccc;
    height: 300px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

section[data-module="az-post-grid-filtering"] .az-category-scroll-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

section[data-module="az-post-grid-filtering"] .az-category-filter {
    flex: 1;
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 0;
    overflow: visible;
    white-space: nowrap;
    position: relative;
    text-align: center;
}

/* Scroll Buttons - Hidden by Default */
section[data-module="az-post-grid-filtering"] .az-scroll-left,
section[data-module="az-post-grid-filtering"] .az-scroll-right {
    display: none;
}

/* Filter Buttons */
section[data-module="az-post-grid-filtering"] .az-filter-btn {
    flex-shrink: 0;
    padding: 8px 16px;
    border: none;
    background: #eee;
    border-radius: 20px;
    white-space: nowrap;
    cursor: pointer;
}

section[data-module="az-post-grid-filtering"] .az-filter-btn.active {
    background: #333;
    color: #fff;
}

section[data-module="az-post-grid-filtering"] .az-post-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

section[data-module="az-post-grid-filtering"] .az-post-item {
    width: 31%;
    margin: 5px 10px;
    text-align: center;
}

section[data-module="az-post-grid-filtering"] .az-load-more-wrap {
    text-align: center;
    margin: 20px 0;
}

section[data-module="az-post-grid-filtering"] .az-load-more-btn {
    padding: 10px 25px;
    font-size: 16px;
    background: #333;
    color: #fff;
    border: none;
    cursor: pointer;
}

section[data-module="az-post-grid-filtering"] .box-image {
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
}

section[data-module="az-post-grid-filtering"] .image-bg, section[data-module="az-post-grid-filtering"] .box-image {
	height: 300px;
	border: solid 1px #ccc;
	border-radius: 30px;
}

section[data-module="az-post-grid-filtering"] .az-post-title {
    z-index: 2;
    position: absolute;
    bottom: 0;
    color: #fff;
    left: 0;
    right: 0;
}

/* === Responsive Styling === */

/* XL View */
@media only screen and (max-width: 1440px) and (min-width: 1200px) {
    /* Add overrides if needed */
}

/* Tablet View */
@media (min-width: 768px) and (max-width: 980px) {
    section[data-module="az-post-grid-filtering"] .az-post-item {
        width: 31%;
        margin: 5px;
    }
}

/* Mobile View */
@media (max-width: 768px) {

    /* Enable scrollable filter and show arrows */
    section[data-module="az-post-grid-filtering"] .az-category-filter {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        justify-content: flex-start;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    section[data-module="az-post-grid-filtering"] .az-category-filter::-webkit-scrollbar {
        display: none;
    }

  section[data-module="az-post-grid-filtering"] .az-scroll-left, section[data-module="az-post-grid-filtering"] .az-scroll-right {
	display: inline-block;
	background-color: transparent !important;
	border: none;
	font-size: 18px;
	padding: 0 !important;
	border-radius: 0;
	cursor: pointer;
	flex-shrink: 0;
	color: #0067a9;
	transition: 0.3s;
}

    section[data-module="az-post-grid-filtering"] .az-scroll-left:hover,
    section[data-module="az-post-grid-filtering"] .az-scroll-right:hover {
        color: #2eb5dd !important;
    transition: 0.3s;
    }

    section[data-module="az-post-grid-filtering"] .az-post-item {
        width: 47%;
        margin: 5px;
    }

    section[data-module="az-post-grid-filtering"] .image-bg {
        height: 160px;
    }
}
