.home {
    padding-top: calc(var(--nav-height) + var(--header-offset));
}

.top-home-page h1, .hp-theme {
    text-align: center;
}
.hp-theme h1 {
    font-size: 1rem;
}
.top-home-page h1 {
    font-size: 1.50rem;
}

.hp-text p {
    font-size: 0.75rem;
    margin-top: 1rem;
    margin-left: 1rem;
}

.faq, .top-home-page, .hp-theme, .step1, .step2, .step3 {
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
}

.top-home-page, .hp-theme {
    display: flex;
    flex-direction: column;
    margin: 2rem auto 0;
    width: 22.63rem;
}

.top-home-page {
    height: 15.4rem;
}

.hp-theme {
    height: 15.63rem;
}

.top-home-page-content {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: 0;
}

.hp-text {
    flex: 1;
}

.hp-text .btn-sub {
    display: inline-block;
    font-size: 0.75rem;
    margin-left: 0.2rem;
    vertical-align: baseline;
    line-height: 1.6;
    white-space: nowrap;
    text-decoration: none;
}

.picture-hp {
    display: flex;
    align-items: center;
    margin: 0 1.13rem;
}

.step-line {
    border-bottom: 2px solid #00000054;
    width: 22.63rem;
    margin: 3rem auto;
}

.step {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3rem;
}

.step h2 {
    font-size: 1rem;
    margin-top: 0.5rem;
}

.step1, .step2, .step3 {
    width: 13.625rem;
    height: 8.2rem;
    text-align: center;
    font-size: 0.75rem;
}

.step img {
    width: 43px;
    height: 43px;
    justify-items: center;
    margin: 0 auto;
}

.faq{
    width: 19.438rem;
    height: 13.188rem;
    align-items: center;
    margin: 0 auto;
}
.faq-text{
    margin-left: 0.5rem;
}

.faq h2 {
    font-size: 0.90rem;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
.faq h3 {
    font-size: 0.75rem;
    text-decoration: underline;
}
.faq p {
    font-size: 0.65rem;
    margin-bottom: 0.5rem;
}

.last-event {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.last-event h2 {
    font-size: 1.125rem;
    margin: 0;
    text-align: center;
}

.event-cards {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.event-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 15rem;
    padding: 1rem 1.25rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    text-decoration: none;
    color: var(--color-text-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.event-card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    margin: 0;
}

.event-card-type {
    font-size: 0.8125rem;
    text-align: center;
    color: var(--color-text-secondary);
    margin: 0 0 0.5rem;
}

.event-card-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
}

.event-card-empty {
    align-items: center;
    justify-content: center;
    min-height: 8.5rem;
    border-style: dashed;
    background: transparent;
    color: var(--color-text-secondary);
}

.event-card-empty:hover {
    color: var(--color-text-primary);
}

.event-card-empty-plus {
    font-size: 2rem;
    line-height: 1;
    font-weight: 300;
}

.event-card-empty-text {
    font-size: 0.8125rem;
    text-align: center;
}

@media (min-width: 900px) {

    .last-event {
        width: 68rem;
    }

    .last-event h2 {
        font-size: 1.25rem;
    }

    .event-cards {
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
        gap: 2rem;
    }

    .event-card {
        flex: 1;
        max-width: 18rem;
    }

    .top-home-page, .hp-theme {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto 1fr;
        width: 68rem;
        height: 15rem;
        overflow: hidden;
    }

    .top-home-page > h1, .hp-theme >h1 {
        grid-column: 1;
        grid-row: 1;
        font-size: 1.5rem;
        margin: 1.5rem 0 0;
    }

    .top-home-page-content {
        display: contents;
    }

    .hp-text {
        grid-column: 1;
        grid-row: 2;
    }

    .hp-text p {
        font-size: 1rem;
        margin-left: 2rem;
        margin-top: 2rem;
    }

    .hp-text .btn-sub {
        text-decoration: none;
        font-size: 0.75rem;
        margin-left: 1rem;
        padding: 0.3125rem 0.375rem;
    }

    .picture-hp {
        grid-column: 2;
        grid-row: 1 / span 2;
        margin: 0;
        height: 100%;
    }

    .picture-hp .img-hp {
        margin: 0 1rem 0 0;
        object-fit: cover;
    }


    .step-line {
        width: 68rem;
    }

    .step {
        flex-direction: row;
        gap: 16rem;
    }

    .step p {
        margin: 0 1rem;
    }

    .step img {
        margin: 0.313rem auto;
    }

    .step1, .step2, .step3 {
        width: 11.375rem;
        height: 10.5rem;
        font-size: 0.90rem;
    }

    .faq {
        width: 24.438rem;
    }

    .faq h2 {
        font-size: 1rem;
        text-align: center;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
    .faq h3 {
        font-size: 0.90rem;
        text-decoration: underline;
    }
    .faq p {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }
}