.header {
    top: 25px;
}

.member-login {
    background: #f1f1f1;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 200;
    display: flex;
    padding: 3px 10px
}

.single-home .carousel, .offset-head {
    margin-top: 99px;
}

.home .book {
    top: 90px;
}

@media (min-width: 641px) {
    .header {
        top: 30px;
    }
   .home .book {
        top: 101px;
    }
}


.member-login ul, li {
    margin: 0;
    margin-left: auto;
    padding: 0;
    list-style: none;
}

.member-login ul {
    display: flex;
    align-items: center;
    column-gap: 1rem;
}

.member-login ul a {
    text-decoration: underline;
}

.member-login a {
    color: black;
}


.custom-forms input[type="email"],
.custom-forms input[type="password"],
.custom-forms input[type="search"],
.custom-forms input[type="text"] {
    border: none;
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0.2rem;
    width: 100%;
}

.custom-forms input[type="email"]:focus,
.custom-forms input[type="password"]:focus,
.custom-forms input[type="search"]:focus,
.custom-forms input[type="text"]:focus {
    border-bottom: 2px solid rgba(0, 0, 0, 0.87);
    outline: none;
}

.custom-forms p {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 0rem;
}

.custom-forms button[type="submit"], .custom-forms input[type="submit"] {
    text-decoration: none;
    color: #6D6E70;
    border: 1px solid #a0a0ad;
    line-height: 1;
    display: inline-block;
    padding: 0.33em 0.75em;
    font-weight: bold;
    position: relative;
    z-index: 1;
    overflow: hidden;
    -webkit-transition: all 0.2s cubic-bezier(0.25, 0.1, 0.2, 1);
    -o-transition: all 0.2s cubic-bezier(0.25, 0.1, 0.2, 1);
    transition: all 0.2s cubic-bezier(0.25, 0.1, 0.2, 1);
    display: inline-block;
}

.member-only-resource {
    border-left: 8px solid #FFCA05;
    padding-left: 1rem;
}

.resource-grid {
    padding-top: 0 !important;
}

.resources-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 1rem;
}

.resources-title {
    font-weight: bold;
}

.resources-card {
    width: 100%;
    padding: 1rem;
    display: flex;
    background: white;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    column-gap: 16px;
    border-top: 3px solid #FFCA05;
}

.resources-card .resource-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    row-gap: 16px;
    flex: 1 0 0%;
}

.resource-grid ul {
    margin: 0;
    margin-bottom: 2rem;
    padding: 0;
    list-style: none;
}

.resource-grid ul li {
    margin-bottom: 0.25rem;
}

.resource-category-buttons {
    padding: 1rem;
    background-color: #e0e0e4;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    column-gap: 1rem;
    z-index: 2;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .resource-category-buttons {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
    }
}

.resource-category-toggle {
    background: transparent;
    font-weight: bold;
    border: none;
    padding: 0.25rem 1rem;
    flex-shrink: 0;
}

.resource-category-toggle.active {
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.resource-search-result {
    font-size: 18px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    column-gap: 0.5rem;
    margin-bottom: 6px;
}

.resource-search-result:hover {
    background: #FFFFFF;
}

.resource-search-form {
    display: flex;
    align-items: center;
}

.resource-clear-button { 
    text-decoration: underline;
    color: #6D6E70;
    margin-left: 1rem;
    font-weight: bold;
}

.resource-search-input {
    background: #e0e0e4;
    border-radius: 2em;
    border: 0;
    grid-column: col 1 / span 2;
    grid-row: row 1;
    padding: 0.5em 1em;
}

.resource-search-submit {
    border: 0;
    z-index: 50;
    grid-column: col 2;
    justify-self: end;
    grid-row: row 1;
    padding: 0.5em 1.25em;
    padding-right: 1.5em;
    border-top-right-radius: 2em;
    border-bottom-right-radius: 2em;
    background-size: 15px 15px;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #e0e0e4;
}