body {
    margin: 0;
    padding: 0;
    color: #12122d;
}

.container {
    display: flex;
    flex-wrap: wrap;
    margin: 25px;
    gap: 25px;
    flex: 1;
}

/* topbar */
.topbar {
    flex: 1;
}

.main-content {
    flex: 1;
    margin-left: 25px;
    margin-right: 25px;
    position: relative;
    padding-top: 25px;
}

h1 {
    font-size: 42px;
    margin: 25px;
    margin-bottom: 25px;
}

h2 {
    font-size: 22px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
}

#clearAllButton,
#viewFullResultsButton {
    padding: 10px 20px;
    background-color: #005aaa;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    font-weight: bold;

}

#clearAllButton:hover,
#viewFullResultsButton:hover {
    background-color: #12122d;
}

.clear-icon {
    font-size: 22px;
    line-height: 1;
    color: #fff;
    display: inline-block;
    vertical-align: middle;
}

.filter-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.filter-dropdown {
    padding: 5px;
}


.filter-dropdown .filter-label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    font-size: 18px;
}

.filter-option {
    position: relative;
    cursor: pointer;
    padding-bottom: 10px;
    color: #555;
}

.option-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
}

.dropdown-icon {
    font-size: 22px;
    color: #555;
    transition: transform 0.3s, color 0.3s;
}

.option-label:hover .dropdown-icon {
    transform: rotate(180deg);
}

.option-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    max-height: 250px;
    overflow-y: auto;
    width: 100%;
}

.option-dropdown label {
    display: block;
    padding: 8px 12px;
}

.option-dropdown input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    accent-color: #005aaa;
    vertical-align: sub;
}

.option-dropdown label:hover {
    background-color: #f8f9fd;
}

.hidden {
    display: none;
}

/* cards */
.card-container.card-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 20px;
}

.card {
    position: relative;
    height: 350px;
    border-radius: 25px;
    padding: 30px;
    background-color: #f8f9fd;
    transition: transform 0.2s;
    margin-bottom: 10px;
}

.card:hover {
    transform: translateY(-5px);
}

.stage-tag-card {
    display: inline-block;
    background-color: rgba(18, 18, 45, .5);
    color: #fff;
    border-radius: 5px;
    padding: 5px 8px;
    margin-bottom: 15px;
    text-align: center;
}

.stage-tag-list {
    display: inline-block;
    background-color: rgba(18, 18, 45, .5);
    color: #fff;
    border-radius: 5px;
    padding: 5px 8px;
    margin-bottom: 15px;
    width: 78px;
    text-align: left;
}

.description-text {
    margin-bottom: 15px;
    max-height: 118px;
    line-height: 1.2;
    overflow: auto;
}

.learn-more-label {
    position: absolute;
    bottom: 30px;
    left: 25px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 15px;
}

.learn-more-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 0.8px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    line-height: 0;
}

.learn-more-icon::before {
    content: url("../Icons/arrow-black.svg");
    display: block;
    font-size: 18px;
    font-weight: bold;
}

.card:hover .learn-more-icon {
    width: 50px;
    border-radius: 25px;
    background-color: #12122d;
    justify-content: end;
    padding-right: 15px;
}

.card:hover .learn-more-icon::before {
    content: url("../Icons/arrow.svg");
}

@media (min-width: 1500px) {
    .filter-container {
        grid-template-columns: repeat(4, 1fr);
    }

    .card-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* List view*/
.list-view {
    display: block;
    text-align: left;
    margin-left: 50px;
    align-items: center;
}

.list-item h2 {
    display: inline;
    margin-left: 10px;
    padding: 10px;
    line-height: 1.5;
    font-size: 20px;
}

/* buttons */
.button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.arrow-icon {
    font-size: 20px;
    color: #fff;
}

.view-buttons {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.view-button {
    background: #005aaa;
    border: none;
    border-radius: 10px;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
    padding-bottom: 4px;
}

.view-button:hover {
    background-color: #12122d;
}

.view-button .icon {
    font-size: 24px;
    display: inline-block;
    vertical-align: middle;
}
