@import url(style.css);

/* ---- Main ---- */
.main-header {
    background-image: url("assets/rainbow-gradient.png");
    background-size: cover;

    width: 100%;
    display: flex;
    flex-direction: column;
}

#hero h1 {
    margin-bottom: 1.8rem;
}

main {
    margin: 3.75rem 0;
}

section {
    margin-bottom: 7.5rem;
}

#us {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 7rem;
    margin-left: 5%;
}

.about-grid a {
    text-decoration: none;
    color: var(--text-primary);
}

.emphasized {
    color: var(--golden);
}

.arrow-button {
    display: flex;
    padding: 1.75rem;
    margin: 1rem 0 1rem 0;

    border-radius: 1.25rem;
    background: var(--background-secondary); 
}

.arrow-button img {
    margin-left: auto;
}

.photo-grid {
    display: grid;
    grid-template-rows: 12rem 12rem;
    gap: 1rem;
    overflow-x: scroll;
    padding-right: 5%;
}

.photo-grid img {
    width: 12rem;
    border-radius: 0.5rem;
    border: var(--border-primary);
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

@media screen and (max-width: 1060px) {
    #us {
        grid-template-columns: 1fr;
        margin-left: 0;
    }

    .photo-grid {
        order: 1;
        max-width: 100%;
        padding-left: 5%;
        padding-bottom: 10px; /* Avoid scrollbar overlap */
    }

    .about-grid {
        order: 2;
        margin-left: 5%;
        margin-right: 5%;
    }
}

#wins h2 {
    margin-left: 5%;
    margin-right: 5%;
}

.wins-container {
    display: flex;
    gap: 2rem;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: scroll;
    padding-left: 5%;
    padding-right: 5%;
    padding-bottom: 10px; /* Avoid scrollbar overlap */
}

.win {
    max-width: 80%;
    width: 25rem;
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-items: start;
    flex-shrink: 0;
}

.win img {
    width: 100%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 0.75rem;
    border: 1px solid var(--border-primary);

    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    overflow: hidden;
    align-self: flex-start;
    object-fit: contain;
}

.win a {
    text-decoration: none;
    display: inline-flex;
    height: 3rem;
    padding: 0.75rem 1.5rem;
    justify-content: center;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
    margin-top: auto;

    border-radius: 6.25rem;
    border: 1px solid var(--golden); 
    color: var(--golden);
}

.win-content h3 {
    overflow: hidden;
    text-overflow: ellipsis;

    /* Clamp to 1 line for titles */
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;  
}

.win-content p {
    overflow: hidden;
    text-overflow: ellipsis;

    /* Clamp to 3 lines for text */
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; 
}

.newspaper {
    background: var(--gradient-violet);
}

#resources {
    margin-left: 5%;
    margin-right: 5%;
}

.resource-grid {
    display: flex;
    gap: 1em;
    flex-direction: row;
    flex-wrap: wrap;
    max-width: 100%;
}

.resource-grid a {
    text-decoration: none;
}

.resource-cell {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 17.1875rem;
    aspect-ratio: 1 / 1;
    border-radius: 1rem;
    color: var(--text-primary);
}

#map-section {
    margin-left: 5%;
    margin-right: 5%;
}

#map {
    height: 60vh;
    width: 90vw;
    margin: 0 auto;
    z-index: 190;
}

@media screen and (max-width: 1060px) {
    .resource-grid {
        flex-direction: column;
    }

    .resource-cell {
        height: 6.25rem;
        width: 100%;
    }
}

#resource-join {
    background: var(--gradient-violet);
}

#resource-support {
    background: var(--gradient-green);
}

#resource-card {
    background: var(--gradient-warm);
}

#resource-faq {
    background: var(--gradient-cool);
}
