.library-search {
    .c-hero__headline {
        max-width: 747px;
    }

    .c-hero__body {
        margin-left: 15px;
    }

    .no-posts {
        text-align: center;
    }
    
    ul {
        list-style: none;
        list-style-type: none; /* Remove bullets */
        padding: 0; /* Remove padding */
        margin: 0; /* Remove margins */

        li::before {
            content: '';
            display: none;
        }
    }
    
    .az-links {
        display: flex;
        border-bottom: 2px solid #FE8F3F;;
        padding: 20px 0;
        flex-wrap: wrap;

        @media all and (min-width: 47em) {
            justify-content: space-between;
        }

        li {
            text-align: center;
            background: transparent;
            color: #EEEEEE;
            font-size: 20px;
            font-weight: 700;
            line-height: normal;

            &.has-posts a {
                color: #6E6F72;
                text-decoration: none;

                &:hover {
                    color: var(--color-library-search-links-hover);
                }
            }

            span {
                width: 23px;
                height: 23px;
                padding: 0 7px;
                vertical-align: middle;
                cursor: default;

                &.active {
                    background: #FE8F3F;
                    color: white;
                }
            }

            a span {
                cursor: pointer;
            }
        }

        &.show-all li span.active {
            background: transparent;
            color: #6e6f72;
        }
    }

    .library-posts {
        padding: 100px 0;
        min-height: 465px;

        @media all and (max-width: 47em) {
            max-width: 100%;
        }

        ul {
            .library-card-item {
                display: none;
                opacity: none;

                &.show-card {
                    display: flex;
                    opacity: 1;
                    align-items: stretch;
                    flex-grow: 1;
                }
            }

            .library-card-wrapper {
                display: flex;
                text-decoration: none;
                color: #6E6F72;
                transition: opacity .5s ease-in;
                -webkit-transition: opacity .5s ease-in;
                -moz-transition: opacity .5s ease-in;
                -o-transition: opacity .5s ease-in;
            }

            .library-card {
                display: flex;
                flex-direction: column;
                width: auto;
                /*height: 285px;*/
                background: white;
                box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1);
                /*padding: 35px 35px 0;*/
                margin: 15px 15px 0;
                box-shadow: 0px 5px 15px #ddd;
                transition: box-shadow 0.4s linear;
                /*border-bottom: solid 10px orange;*/

                @media all and (max-width: 47em) {
                    min-height: 375px;
                }

                &:hover {
                    text-decoration: none;
                    box-shadow: 5px 5px 15px #ccc;
                }

                .library-card-content {
                    padding: 35px 35px 0;
                    cursor: pointer;
                }

                a {
                    text-decoration: none;
                    color: #6E6F72;
                }

                h4.library-type {
                    font-size: 20px;
                    font-weight: 700;
                    color: var(--color-library-search-library-type);
                    text-transform: uppercase;
                    margin-bottom: 10px;
                    margin-top: 10px;

                    &.Conditions,
                    &.Condition {
                        color: #FE8F3F;
                    }
                }

                h3.library-title {
                    font-size: 32px;
                    font-weight: 400;
                    color: #6E6F72;
                    margin-bottom: 10px;
                    margin-top: 10px;
                    word-break: break-word;
                    -webkit-hyphens: auto;
                    -ms-hyphens: auto;
                    hyphens: auto;
                }

                .library-parent {
                    font-size: .95rem;

                    span {
                        font-weight: 700;
                    }
                }

                .library-content {
                    font-size: 18px;
                    font-weight: 400;
                    color: #6E6F72;
                }

                .view-specialists {
                    font-size: 20px;
                    font-weight: 700;
                    color: #6E6F72;
                    text-transform: uppercase;
                    cursor: pointer;
                    padding: 0 35px 0;
                    z-index: 1;

                    &:after {
                        content: '';
                        background-position: calc(100% - 1px) 50% !important;
                        background-repeat: no-repeat;
                        background-size: 20px auto;
                        padding-right: 30px;
                    }

                    &:hover {
                        color: var(--color-library-search-links-hover);

                        &:after {
                            background-position: calc(100% - 1px) 50% !important;
                            background-repeat: no-repeat;
                            background-size: 20px auto;
                            padding-right: 30px;
                        }
                    }
                }

                .border-bottom {
                    display: flex;
                    flex-grow: 1;
                    box-shadow: 0 4px 2px -3px rgba(0, 0, 0, 0.1);
                    opacity: 0;
                    margin: 35px 0 0;
                    /*height: 10px;*/
                    width: auto;
                    transition: opacity 0.4s linear;

                    .border-line {
                        height: 10px;
                        width: auto;
                        flex-grow: 1;
                        align-self: flex-end;
                        position: relative;
                        background-color: none;
                    }
                }

                &:hover {
                    .border-bottom {
                        
                        opacity: 1;

                        .border-line {
                            background: var(--background-gradient-color-orange)
                        }
                    }
                }
            }

            .col-md-6 {
                padding: 0;
            }
            
            /* .border-bottom {
                 height: 10px;
                 width: auto;
                 margin: auto 60px 90px;
                 position: relative;
                 background: linear-gradient(to right, 
                 $color-brand-red-orange, $color-brand-orange);
             }*/
        }
    }

    .letter-title {
        display: none;
    }

    .clear {
        font-size: 18px;
        font-weight: 400;
        text-transform: uppercase;
        color: #FE8F3F;
        background-position: 0 47% !important;
        background-repeat: no-repeat;
        background-size: 15px auto;
        padding-left: 25px;
        width: 190px;
        margin: 0 0 0 auto;
        cursor: pointer;

        @media all and (max-width: 47em) {
            margin: 0 auto 0 auto;
        }
    }
}

.c-library-search {
	margin-bottom: 30px;
	margin-top: 30px;
	padding: 0;
    max-width: 100%;

    @media all and (max-width: 47em) {
        margin-top: 0;
        padding-top: 30px;
    }
    
	@media all and (min-width: 47em) {
		margin-top: 0;
    }
    
	.c-library-search__form {
		border-bottom: 0 none transparent;
		border-right: 0 none transparent;
		margin: 0;
		padding: 2rem 2.5rem;
        width: 100%;
        
		@media all and (min-width: 47em) {
			padding: 4rem 0 calc(2rem - 20px);
			position: relative;
			top: -20px;
        }
        
		.c-field {
			width: 100%;

			.disclaimer {
				color: var(--color-neutral-gray-53);
				font-style: italic;
				margin: 1em 0 0 0;
			}
		}

		.c-field__body {
			margin-right: 0;
            width: 100%;
            
			&.c-name-field__body {
				@media all and (min-width: 430px) and (max-width: 900px) {
					margin-bottom: 10px;
					margin-top: 10px;
					width: 100%;
				}
            }
            
			@media all and (min-width:430px) {
				margin-bottom: 0;
				margin-right: 20px;
				width: calc(50% - 10px);
            }
            
			& + label + .c-field__body:not(.c-name-field__body) {
				@media all and (max-width:900px) {
					float: right;
					margin-right: 0;
				}
            }
            
			input, select {
				@media all and (max-width: 47em) {
					min-width: 188px;
					padding-bottom: .5rem;
					padding-top: .5rem;
				}
			}
        }

        .library-search-btn {
            margin-top: 7px;
        }
    }
    
	.c-library-search__header {
		color: var(--color-library-search-header);
		display: block;
		font-size: var(--font-size-med-2);
		font-weight: 700;
		margin-bottom: .5rem;
		text-align: left;
        text-transform: uppercase;
        
		@media all and (min-width: 47em) {
			text-align: left;
			width: 100%;
		}
	}
}