@import url('https://fonts.googleapis.com/css2?family=Exo+2&display=swap');

:root {
    --dark: #141414;
    --white: #ebebeb;
    --blue: #1e90ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background-color: var(--dark);
    color: var(--white);
    font-family: 'Exo 2', 'Segoe UI', -apple-system, sans-serif;
}

main {
    min-height: 100vh;
    padding: 20px;
}

.site-title {
    color: var(--blue);
    text-align: center;
    font-size: 3rem;
    margin: 2rem 0;
    font-weight: normal;
    text-shadow: 0 0 10px var(--blue);
}

.grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.row {
    display: grid;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
    justify-content: center;
}

/* First row - 4 cards */
.row:nth-child(1) {
    grid-template-columns: repeat(4, 250px);
}

/* Second row - 3 cards */
.row:nth-child(2) {
    grid-template-columns: repeat(3, 250px);
}

/* Third row - 2 cards */
.row:nth-child(3) {
    grid-template-columns: repeat(2, 250px);
}

.card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    width: 250px;
    height: 135px;
    aspect-ratio: auto;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    box-shadow: 0 0 20px var(--blue);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    height: 100%;
    padding: 20px;
    color: var(--white);
    text-decoration: none;
    position: relative;
    z-index: 1;
    text-align: left;
}

.card h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: var(--white);
    text-transform: uppercase;
}

.card p {
    margin: 0;
    color: var(--white);
    opacity: 0.7;
    font-size: 0.9rem;
    align-self: flex-start;
}

.bi {
    font-size: 24px;
    margin-bottom: 0;
    color: var(--white);
}

@media (max-width: 768px) {
    .row {
        grid-template-columns: 250px !important;
    }

    .site-title {
        font-size: 2rem;
        margin: 1rem 0;
    }

    .card {
        width: 250px;
        height: 135px;
    }
}