/*
|--------------------------------------------------------------------------
| Typography
|--------------------------------------------------------------------------
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
}

body {
    font-family: "Manrope", Arial, sans-serif;
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Exo", Arial, sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
}

.font-accent {
    font-family: "Unica One", sans-serif;
    font-weight: 400;
}

.news-card-image {
    display: block;
    width: 100%;
    height: 260px;
    overflow: hidden;
}

.news-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Athletes */

.athletes-section {
    padding: 4rem 1.5rem;
}

.athletes-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.athletes-container > h1 {
    margin: 0 0 3rem;
    text-align: center;
}

.athletes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem 2rem;
}

.athlete-card {
    position: relative;
    min-width: 0;
}

.athlete-name {
    margin: 0 0 1rem;
    text-align: center;
}

.athlete-profile {
    line-height: 1.6;

    transition:
        filter 0.3s ease,
        opacity 0.3s ease;
}

.athlete-image {
    position: absolute;
    inset: 0;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.athlete-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (hover: hover) and (pointer: fine) {
    .athlete-card:hover .athlete-profile,
    .athlete-card:focus .athlete-profile {
        filter: blur(4px);
        opacity: 0.35;
    }

    .athlete-card:hover .athlete-image,
    .athlete-card:focus .athlete-image {
        opacity: 1;
        visibility: visible;
    }
}

@media (hover: none), (pointer: coarse) {
    .athlete-card:focus .athlete-profile,
    .athlete-card:focus-within .athlete-profile {
        filter: blur(4px);
        opacity: 0.35;
    }

    .athlete-card:focus .athlete-image,
    .athlete-card:focus-within .athlete-image {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 991px) {
    .athletes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .athletes-section {
        padding: 2.5rem 1rem;
    }

    .athletes-grid {
        grid-template-columns: 1fr;
    }
}