/* ============================================
   Games Library
   Ported from engagednation.com "games-section"
   ============================================ */

.games-section {
    padding: 50px 0;
    background: #ffffff;
}

.games-section__header {
    text-align: center;
    margin-bottom: 48px;
}

.games-section__header h2 {
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 700;
    color: #07122D;
    margin: 0;
}

.games-section__header p {
    color: #6a7c92;
    font-size: 17px;
    max-width: 620px;
    margin: 16px auto 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.games-grid__item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(5, 20, 65, 0.08);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.games-grid__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(5, 20, 65, 0.14);
}

.games-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.games-grid__item--wide {
    grid-column: span 2;
}

.games-section__cta {
    text-align: center;
    margin-top: 40px;
}

.btn-primary-en {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #4D59DA 0%, #38C9F7 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(77, 89, 218, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary-en:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(77, 89, 218, 0.45);
    color: #fff;
    text-decoration: none;
}

.btn-primary-en::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary-en:hover::after {
    opacity: 1;
}

@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .games-grid__item--wide {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
}
