#example header {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}
#example header h1 {
    text-align: center;
}
#example header .example_preamble {
    text-align: center;
    font-size: 20px;
    margin-bottom: 100px;
}
@media (max-width: 1023px) {
    #example header h1 {
        font-size: 2rem;
    }
}
@media (max-width: 767px) {
    #example header {
        padding: 50px 20px;
    }
    #example header .example_preamble {
        font-size: 1rem;
        margin-bottom: 50px;
    }
}

/* Filter */
.custom-dropdown {
    position: relative;
    display: inline-block;
    flex-direction: row;
    justify-content: space-between;
    background: #444;
    color: #fff;
    border-radius: 6px;
    min-width: 180px;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
    max-width: 512px;
    width: 100%;
}
.custom-dropdown .dropdown-selected {
    padding: 12px 40px 12px 16px;
    background: #d9d9d9;
    color: #000;
    position: relative;
    font-weight: bold;
}
.custom-dropdown .dropdown-arrow {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    width: 64px;
    height: 100%;
    background: #000;
    border-radius: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}
.custom-dropdown.open .dropdown-arrow svg {
    transform: rotate(180deg);
}
.custom-dropdown .dropdown-arrow svg {
    width: 30px;
    height: 21px;
}
.custom-dropdown .dropdown-options {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    background: #FFF8F3;
    color: #000;
    z-index: 10;
    margin-top: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.custom-dropdown.open .dropdown-options {
    display: block;
}
.custom-dropdown .dropdown-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s;
}
.custom-dropdown .dropdown-option:hover,
.custom-dropdown .dropdown-option.selected {
    background: #F7DD9B;
    color: #000;
}

/* grid styling */
/* Card-grid */
#example .card-grid-block {
    margin: 100px 0;
}
#example .card-grid-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
    row-gap: 3.75rem;
}
#example .card-grid-list .card-grid-item {
    display: flex;
    flex-direction: column;
}
#example .card-grid-list .card-grid-item-link .card-grid-img {
    position: relative;
    overflow: hidden;
}
#example .card-grid-list .card-grid-item-link .card-grid-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #EC7223;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
#example .card-grid-list .card-grid-item-link:hover .card-grid-img::after {
    opacity: 0.5;
}
#example .card-grid-list h3 {
    margin-top: 20px;
    color: black;
}
@media (max-width: 640px) {
    #example .card-grid-block {
        margin: 50px 0;
    }
    #example .card-grid-list {
        grid-template-columns: 1fr;
    }
}
#example .card-grid-list .card-grid-item-descr {
    flex-grow: 1;
    color: black;
}
#example .card-grid-list .card-grid-item-link {
    text-decoration: none;
}
#example .card-grid-list .card-grid-button,
#example-filter .card-grid-button {
    border-radius: 9999px;
    border: 1px solid black;
    padding: 10px 30px;
    background-color: white;
    color: black;
    display: inline;
    margin-top: 20px;
    align-self: flex-start;
}
#example .card-grid-list .card-grid-item-link:hover .card-grid-button,
#example-filter .card-grid-button:hover {
    background-color: #FCDD9D;
    color: black;
    border-color: #FCDD9D;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    text-decoration: none;
}

/* buttons */
.archive-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 0;
}
.archive-pagination button {
    background: #000;
    color: #fff;
    border: none;
    padding: 10px 10px;
    font-size: 1.5rem;
    cursor: pointer;
    margin: 0 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.archive-pagination button:disabled {
    background: #d9d9d9;
    color: #888;
    cursor: not-allowed;
}
.archive-pagination button svg {
    width: 30px;
    height: 21px;
    display: block;
}
button#nextPage svg {
    fill: none;
    transform: rotate(90deg);
}
button#prevPage svg {
    fill: none;
    transform: rotate(-90deg);
}
#resetFilter {
    margin-left: 2rem;
}
@media (max-width: 1023px) {
    #resetFilter {
        margin-left: 0px;
    }
}

