.card-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.badge {
    display: inline-block;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    margin-right: 0rem;
    margin-top: 0.5rem;
}

.badge2-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

/* Uppdaterad badge2 styling för grid layout */
.badge2 {
    display: inline-block;
    background: linear-gradient(to right, #f7e35b, #d4af37);
    color: #1a1a1a;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    margin: 0;
    text-align: center;
    white-space: nowrap;
}
.badge3 {
    display: inline-block;
    background: #e3fee0;
    color: #2ec20d;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    margin-right: 0rem;
    margin-top: 0.5rem;
}

.badge4 {
    display: inline-block;
    background: #fee0e0;
    color: #c70202;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    margin-right: 0rem;
    margin-top: 0.5rem;
}
.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-header img.card-icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 25%;
    outline: 1px solid black;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.75);
    /* mörk tint */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.hidden {
    display: none;
}

.modal-links {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.modal-icon-link img.modal-icon {
    height: 50px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.modal-icon-link img.modal-icon:hover {
    transform: scale(1.1);
}

.modal-content {
    background: white;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    position: relative;
    text-align: center;
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.carousel {
    position: relative;
    margin-bottom: 1.5rem;
    text-align: center;
}

.carousel img {
    max-width: 90%;
    max-height: 400px;
    border-radius: 15px;
    object-fit: contain;
}

.carousel-controls {
    margin-top: 0.5rem;
}

.carousel-controls button {
    background-color: #e5e7eb;
    border: none;
    font-size: 1.25rem;
    margin: 0 0.5rem;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
}