.magic-grid-wrapper {
    position: relative;
}

.magic-grid {
    display: grid;
    gap: 20px;
    justify-content: center;
    align-items: start;
}

.magic-card {
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute content evenly */
}

.magic-card-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.magic-card-content {
    margin-top: 15px;
    flex-grow: 1; /* Allow content to grow and fill available space */
    display: flex;
    flex-direction: column;
    width: 100%;
}

.magic-card-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
}

.magic-card-subtitle {
    font-size: 0.9em;
    color: #777;
    margin-top: 5px;
}

.magic-card-accordion {
    width: 100%;
    margin-top: 15px;
}

.magic-card-accordion-toggle {
    background-color: #f0f0f0;
    color: #333;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    outline: none;
    font-size: 1em;
    transition: 0.4s;
    display: flex;
}

.magic-card-accordion-toggle:hover {
    background-color: #ddd;
}

.magic-card-accordion-toggle span {
    font-weight: bold;
    font-size: 1.2em;
}

.magic-card-accordion-content {
    padding: 0 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    background-color: transparent;
}

.magic-card-accordion-content.active {
    max-height: 200px; /* Adjust as needed */
    padding-bottom: 20px; /* Add padding to the bottom */
    background-color: transparent;
}

.magic-grid-filters {
    margin-bottom: 20px;
}

.magic-grid-filter {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 10px 15px;
    margin-right: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.magic-grid-filter.active {
    background-color: #337ab7;
    color: #fff;
}

.magic-grid-load-more {
    margin-top: 20px;
}

.magic-grid-load-more-button {
    background-color: #337ab7;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
}

.magic-card-wrapper {
    display: flex;
    justify-content: center;
}

.magic-grid-load-more[data-alignment="left"] {
    text-align: left;
}

.magic-grid-load-more[data-alignment="center"] {
    text-align: center;
}

.magic-grid-load-more[data-alignment="right"] {
    text-align: right;
}

.magic-grid-load-more.is-hidden {
    display: none;
}
