.button {
    display: inline-block;
    padding: var(--spacing-small) var(--spacing-medium);
    font-family: var(--font-family);
    font-size: var(--font-size-medium);
    color: var(--text-light);
    background: var(--primary);
    border: none;
    border-radius: var(--border-radius);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: var(--box-shadow);
}

.button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.button:active {
    transform: translateY(0);
}

.button-secondary {
    background: var(--secondary);
}

.button-secondary:hover {
    background: var(--primary-hover);
}

.back-button {
    color: white;
    left: 1rem;
    top: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    z-index: 1;
    cursor: pointer;
    position: absolute;
    margin: 0;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.back-button:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 51, 102, 0.4);
}

.back-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 51, 102, 0.2);
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 14px;
    color: #eaeaea;
    cursor: pointer;
    z-index: 100;
    transition: color 0.3s ease;
    background-color: #0000006e;
    padding: 7.4px;
    border-radius: 5px;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .close-button {
        top: 0.75rem;
        right: 0.75rem;
        padding: 6px;
        font-size: 12px;
    }
}

.close-button:hover {
    color: #555;
}

.ReadMore-Button,
.partner-match-card--open .ReadMore-Button{
    position: relative;
    color: white;
    cursor: pointer;
    border-radius: 6px;
    background: linear-gradient(181deg, #004fa1 10.92%, rgba(0, 19, 255, 0.56));
    text-decoration: none;
    font-weight: 300;
    margin-right: 1rem;
    padding: 10px 15px;
    text-wrap: nowrap;
    box-shadow: 2px 2px 3px 2px rgba(0,0,0,0.1);
}

.modal-pdf-link, .modal-read {
    padding: 10px 15px;
    background: linear-gradient(181deg, #004fa1 10.92%, rgba(0, 19, 255, 0.56));
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    height: 2rem;
    text-wrap: nowrap;
    margin-right: 1rem;
    font-weight: 500;
}


.ReadMore-Button:hover {
    background: linear-gradient(45deg, #132543, #000000);

}

.modal-link {
    position: relative;
    /* right: 1rem; */
    padding: 10px 15px;
    color: white;
    cursor: pointer;
    text-wrap: nowrap;
    border-radius: 6px;
    background: linear-gradient(181deg, #004fa1 10.92%, rgba(0, 19, 255, 0.56));
    text-decoration: none;
    font-weight: 500;
    z-index: 2;
}

.modal-link:hover, .modal-read:hover,
.modal-pdf-link:hover {
    background: linear-gradient(45deg, #193664, #000000);

}

.method-link,
.tag-link {
    padding: 2px 5px;
    background-color: #f0f0f0;
    border-radius: 3px;
    font-size: 12px;
}
.method-link.hidden,
.tag-link.hidden {
    display: none;
}

.selected-tag {
    color: white;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 3px;
    background-color: #003366 !important;

}


.selected-method {
    color: white;
    background-color: #003366;

}

.selected-tag:hover {
    background-color: #0056b3;
}

.methods-container,
.tags-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    min-width: 30px;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    margin: 4px;
    margin-left: 0;
}
.selected-tags-container {
    display: flex;
    justify-content: stretch;
    gap: 5px;
    justify-items: end;
    color: white;

}

.selected-filter {
    text-wrap: nowrap;
}

.selected-filter{
    background-color: #003366;

}

.selected-filter button {
    margin: 5px;
    border-radius: 5px;
    color: white;
}

.about-button{
    max-width: 25%;
    min-width: 25%;
}
.about-button:hover{
    transform: translateY(-5px);
    animation: 300ms ease-in;
    cursor: pointer;
}