/* Grid Layout */
.gsp-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 0;
    font-family: Arial, sans-serif;
}

/* Individual Card */
.gsp-card {
    position: relative;
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    background-color: #eee;
}

/* Background Image */
.gsp-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

/* Project Name Front */
.gsp-title-front {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    color: #ffffff;
    padding: 40px 20px 20px 20px;
    margin: 0;
    box-sizing: border-box;
    font-size: 20px;
    text-align: left;
    z-index: 2;
    transition: transform 0.4s ease;
}

/* Hover Overlay */
.gsp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 43, 92, 0.9);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    opacity: 0;
    z-index: 3;
    transition: opacity 0.4s ease;
}

/* Hover States */
.gsp-card:hover .gsp-image {
    transform: scale(1.1);
}

.gsp-card:hover .gsp-overlay {
    opacity: 1;
}

.gsp-card:hover .gsp-title-front {
    opacity: 0; 
}

/* Typography inside Overlay */
.gsp-title-hover {
    font-size: 22px;
    margin-bottom: 15px;
    color: #ffd700;
    transform: translateY(-20px);
    transition: transform 0.4s ease;
}

.gsp-details {
    transform: translateY(20px);
    transition: transform 0.4s ease;
    font-size: 16px;
    line-height: 1.6;
}

.gsp-details p {
    margin: 5px 0;
    color: #fff;
}

.gsp-card:hover .gsp-title-hover,
.gsp-card:hover .gsp-details {
    transform: translateY(0);
}

/* --- PAGINATION --- */
.gsp-pagination {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 40px 0 !important;
    width: 100%;
    font-family: Arial, sans-serif;
}

.gsp-pagination .page-numbers {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    background-color: #f1f1f1 !important;
    color: #002b5c !important;
    text-decoration: none !important;
    border-radius: 50% !important;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 0 !important;
    padding: 0 !important;
}

.gsp-pagination .page-numbers.prev,
.gsp-pagination .page-numbers.next {
    width: auto;
    padding: 0 18px !important;
    border-radius: 21px !important;
}

.gsp-pagination .page-numbers:hover {
    background-color: #e0e0e0 !important;
}

.gsp-pagination .page-numbers.current {
    background-color: #ffd700 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}