@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    margin: 0;
    padding: 0;
    line-height: 1.7;
    color: #333;
}

.sa-gallery-header {
    text-align: center;
    background: linear-gradient(135deg, #358092, #5197a8);
    color: #fff;
    padding: 35px 0;
    margin-bottom: 50px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.sa-gallery-header h1 {
    margin: 0;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 2px;
}

.sa-gallery-content {
    padding: 0 15%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.sa-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease-in-out;
    cursor: pointer;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.sa-card img {
    width: 100%;
    max-width: 300px;
    height: auto;
    transition: transform 0.4s, opacity 0.3s;
    border-bottom: 4px solid #358092;
}

.sa-card:hover img {
    transform: scale(1.01);
    opacity: 0.9;
}

.sa-card-title {
    padding: 15px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    border-top: 1px solid #e7e7e7;
}

.sa-pagination {
    display: flex;
    justify-content: center;
    padding: 35px 0;
    gap: 10px;
}

.sa-pagination a {
    padding: 10px 18px;
    background-color: transparent;
    border: 2px solid #358092;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 16px;
    color: #333; /* Making the default color dark */
    text-shadow: none; /* Removing the text shadow */
    text-decoration: none; /* Ensuring there's no underline or other decoration */
}

.sa-pagination a:hover {
    background-color: #e7e7e7;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.sa-pagination a.active {
    background-color: #358092;
    color: #fff;
    border-color: #358092; /* Making the border color the same as the background */
}

/* Responsive styles */

@media (max-width: 1200px) {
    .sa-gallery-content {
        padding: 0 4%;
    }
}

@media (max-width: 992px) {
    .sa-gallery-content {
        padding: 0 3%;
    }
}

@media (max-width: 768px) {
    .sa-gallery-content {
        padding: 0 2%;
    }
}

@media (max-width: 576px) {
    .sa-gallery-header h1 {
        font-size: 1.5rem;
    }

    .sa-gallery-content {
        padding: 0 1%;
    }

    .sa-card-title {
        font-size: 18px;
    }
}

@media (max-width: 400px) {
    .sa-pagination a {
        font-size: 14px;
        padding: 8px 15px;
    }
}