/* Dropdown styles */
.service-width {
    width: 100%;
    width: 20% !important;
    margin: 0 20px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

/* Base styles for buttons */
.service-button, .service-reset {
    width: 8% !important;
    margin: 10px 10px 0 0;
}

/* Layout: container for selects and buttons */
#services-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Filter button */
.service-button{
    color: #fff;
	background-color: #0077b6 !important;
	padding: 7px 20px;
	font-size: 18px;
	line-height: 22px;
	widows: 500;
	text-transform: uppercase;
	border-radius: 5px;
}

.service-button:hover {
    background-color: #000 !important;
	transition: 0.3s ease;
}
button.service-reset {
	color: #fff;
	background-color: #000 !important;
	padding: 7px 20px;
	font-size: 18px;
	line-height: 22px;
	widows: 500;
	text-transform: capitalize;
	border-radius: 5px;
    width: 8%;
}
button.service-reset:hover {
    background-color: #0077b6 !important;
	transition: 0.3s ease;
}
.service-item {
    float: left;
    margin-top: 40px;
    border: 1px solid #ddd;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    transition: transform 0.2s ease;
    width: 33.33%;
}
/* Preloader style */
#services-preloader {
    margin: 20px 0;
    text-align: center;
    font-weight: bold;
    color: #333;
}

#services-preloader::after {
    content: '';
    display: inline-block;
    margin-left: 10px;
    width: 20px;
    height: 20px;
    border: 3px solid #0077b6;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results grid layout */

/* Individual service item */
.service-item {
    margin-top: 40px;
    border: 1px solid #ddd;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    transition: transform 0.2s ease;
    width: 33.33%;
}
.service-item-class {
    background: #fff;
    margin: 0 10px;
    padding: 15px;
    height: 585px;
}
.service-item h3 {
    margin-top: 20px;
    font-size: 20px;
    color: #0073aa;
    font-family: 'Poppins';
    font-weight: 600;
}
.ast-single-post .entry-content a {
    text-decoration: none;
}
.service-item a {
    text-decoration: none;
    color: inherit;
}

.service-item p {
    margin-bottom: 10px;
	font-size: 16px;
	font-family: 'Poppins';
	font-weight: 400;
	line-height: 26px;
	
}
a.read-more-button {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #0073aa;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
}

a.read-more-button:hover {
    background-color: #000;
}


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

@media (max-width: 1200px) {
     .service-width, .service-button, .service-reset {
        width: 20%;
    }
.service-button, .service-reset {
    margin: 0 !important;
}
}

@media (max-width: 1024px) {
    .service-width, .service-button, .service-reset {
        width: 49% !important;
    }
	.service-button, .service-reset {
        margin: 10px 0 !important;
		width: 10% !important;
}
	
}

@media (max-width: 880px) {
    .service-width, .service-button, .service-reset {
        width: 49% !important;
    }
	.service-button, .service-reset {
        margin: 10px 0 !important;
		width: 10% !important;
}
.service-item {
    margin-top: 20px !important;
    width: 50% !important;
}
}

@media (max-width: 767px) {
    .service-width, .service-button, .service-reset {
        width: 98% !important;
    }
	.service-button, .service-reset {
        margin: 10px 0 !important;
		width: 20% !important;
}
.service-item {
    margin-top: 20px !important;
    width: 100% !important;
}
	
}
@media (max-width: 480px) {
      .service-width, .service-button, .service-reset {
        width: 98% !important;
    }
	.service-button, .service-reset {
        margin: 10px 0 !important;
		width: 20% !important;
}
.service-item {
    margin-top: 20px !important;
    width: 100% !important;
}
  }

/* Max 360px - small phones */
@media (max-width: 360px) {
      .service-width, .service-button, .service-reset {
        width: 98% !important;
    }
	.service-button, .service-reset {
        margin: 10px 0 !important;
		width: 25% !important;
}
.service-item {
    margin-top: 20px !important;
    width: 100% !important;
}
}