/* Counts Section */
.counts {
    padding: 70px 0 60px;
}

.counts h2:first-child {
    color: #1d283f;
    font-size: 2.5rem;
    transition: ease-in-out 0.3s;
}

/* Card Styles */
.ss-card {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.ss-card--pi {
    background-size: contain;
    background-repeat: no-repeat;
    background-color: #ffffff;
}

.ss-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1;
}

.ss-card-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 100%;
    transition: 0.4s ease;
}

.ss-card-content img {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    margin-bottom: 10px;
    filter: none;
}

.ss-card-content h4 {
    margin: 0;
    color: #1d283f;
    font-weight: bold;
    font-size: 1.3rem;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.30);
}

.ss-hover-text {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1d283f;
    color: #fff;
    z-index: 3;
    padding: 25px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: bottom 0.5s ease;
}

.ss-card:hover .ss-hover-text,
.ss-card.is-active .ss-hover-text {
    bottom: 0;
}

.ss-card:hover .ss-card-content,
.ss-card.is-active .ss-card-content {
    opacity: 0;
    transform: translate(-50%, -40%);
}

.ss-hover-text h4 {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.3rem;
    text-transform: uppercase;
    font-style: normal;
}

.ss-hover-text p {
    font-size: 14px;
    margin-bottom: 20px;
}

.ss-hover-text a {
    display: inline-block;
    padding: 8px 18px;
    border: 2px solid #fff;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease, color 0.3s ease;
}

.ss-hover-text a:hover {
    background: white;
    color: #1d283f;
}

/* Pagination styles */
.pagination .page-item .page-link {
    color: #1d283f;
    border: 1px solid #1d283f;
    margin: 0 4px;
    cursor: pointer;
}

.pagination .page-item.active .page-link {
    background-color: #1d283f;
    color: white;
    border-color: #1d283f;
}

.pagination .page-item .page-link:hover {
    background-color: #d96831;
    color: white;
    border-color: #d96831;
}


@media (max-width: 768px) {
    .ss-card {
        height: 250px;
    }

    .ss-card-content h4 {
        font-size: 1.1rem;
    }

    .ss-hover-text h4 {
        font-size: 1.3rem;
    }

    .ss-hover-text p {
        font-size: 0.85rem;
    }
}