body {
    background: #f7f9f9;
}

h1, h2, .h2 {
    clear: both;
    font-weight: 700;
    line-height: 1.4;
}

h1 {
    font-size: 22px;
}

.h2, h2 {
    font-size: 30px;
}

.header-content {
    padding: 15px 0;
    margin-bottom: 25px;
    text-align: center;
    color: #fff;
}

.collections {
    display: flex;
    flex-wrap: wrap;
}

.services-card {
    background-color: #FFF;
    margin: 20px;
    border-radius: 4px; /* Stone Style */
    overflow: hidden;
    border: 1px solid #dfdfdf;
    transition: all 0.3s ease;
}

.services-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.services-card .card-content {
    padding: 15px;
    text-align: center;
    border-top: 1px solid #dfdfdf;
}

.services-card img {
    width: 100%;
}

.services-card .card-img {
    position: relative;
}

.services-card .card-img a {
    display: block;
}

.card-title a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    margin: 0;
    font-weight: 900;
    transition: color 0.3s;
}

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

.pagination .page-numbers {
    display: inline-block;
    width: 45px; /* Adjusted size */
    height: 45px;
    line-height: 43px; /* Center text vertically */
    font-weight: 900;
    margin: 0 3px;
    border-radius: 4px; /* Stone Style */
    font-size: 16px;
    background: #fff;
    color: var(--primary-color);
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.pagination .prev, .pagination .next {
    float: left;
    text-align: center;
    padding: 0 1.5em;
    width: auto;
    height: 45px;
    line-height: 43px;
}

.marg-50 {
    margin: 25px 0;
}

.pagination .prev {
    float: right;
    text-align: right;
}

.pagination .page-numbers:hover, .pagination .current {
    color: #fff;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.not-found {
    padding: 100px 0 25px 0;
}

.not-found h1 {
    font-size: 100px;
    color: var(--primary-color);
}

.not-found .search-form, .mb-25 {
    margin-bottom: 25px;
}

.related-post {
    text-align: right;
    width: 47%;
    margin: 12px 2px;
}

.related-posts {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.related-post-content {
    margin-right: 15px;
}

.related-post-img img {
    box-shadow: none;
    border: 2px solid #e7e7e7;
    border-radius: 4px; /* Stone Style */
}

.related-post-title {
    font-size: 16px;
    line-height: 1.8;
    font-weight: 600;
    color: #333;
}

@media only screen and (min-width: 768px) {
    .services-card {
        width: 29%;
    }
    
    .related-post {
        text-align: center;
        width: 16%;
    }
}

@media (min-width: 992px) {
    .header-content {
        padding: 50px 0;
    }
}
