.resource-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-brand-red-orange);
                }
            }

            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;
        }
    }

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

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

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

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

            .resource-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;
            }

            .resource-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;*/
                background: #FFFFFF;
                box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.1);
                flex-grow: 1;

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

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

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

                .document-image {
                    padding: 40px 40px 0;
                    width: auto;
                    height: 100%;
                    max-height: 350px;
                    overflow: hidden;
                }

                .document-video iframe {
                    width: 100%;
                    height: 350px;
                    padding: 40px 40px 0;
                }

                .resource-info {
                    width: 100%;
                    padding: 40px;
                    flex-grow: 1;
                }

                .document-title {
                    font-size: 28px;
                    font-weight: 400;
                    margin-bottom: 5px;
                }

                .document-subtitle {
                    font-size: 20px;
                    font-weight: 700;
                    margin-bottom: 5px;
                }

                .document-summary {
                    font-size: 18px;
                    font-weight: 400;
                    margin-bottom: 5px;
                }

                .document-author {
                    font-size: 20px;
                    font-weight: 700;
                    margin-bottom: 5px;
                }

                .document-journal {
                    font-size: 18px;
                    font-weight: 700;
                    margin-bottom: 5px;
                }

                .document-date {
                    font-size: 18px;
                    font-weight: 400;
                    margin-bottom: 5px;
                }
                .document-ctas {
                    &.row {
                        margin: auto;
                    }

                    .document-cta {
                        margin-top: 17px;
                        margin-right: 13px;
                        width: 200px;
                        min-width: 200px;
                        max-width: 200px;
                        background: #ff5f2f;
                        background-image: linear-gradient(to right, #ff5f2f, #faa634, #faa634, #ff5f2f);
                        background-size: 300% 100%;
                        border: 0;
                        border-radius: 3rem;
                        color: #fff;
                        cursor: pointer;
                        display: inline-block;
                        font-size: 14px;
                        font-weight: 700;
                        line-height: 1;
                        padding: 0.75rem 2rem;
                        text-align: center;
                        text-decoration: none;
                        text-transform: uppercase;
                        transition: all 0.15s ease-in;

                        

                        &:hover {
                            cursor: pointer;
                            background-position: 100% 0;
                            color: #fff;
                            text-decoration: none;
                            transition: all .4s ease-in-out;
                            box-shadow: 3px 0 5px rgba(0, 0, 0, .2);
                        }

                        &.blue {
                            background: #1c576e;

                            &:hover {
                                background: #164558;
                            }
                        }
                    }

                    a[target="_blank"] {
                        color: #fff;
                        text-decoration: none;
                        background-image: none;
                        padding-right: 0;
                    }
                }

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

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

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

                h3.resource-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;
                }

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

                    span {
                        font-weight: 700;
                    }
                }

                .resource-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-brand-red-orange);

                        &: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: linear-gradient(to right, #ff5f2f, #fe8f3f);
                        }
                    }
                }
            }

            .col-md-6 {
                padding: 0;
            }

            .border-bottom.color-orange {
                background: linear-gradient(to right, #ff5f2f, #fe8f3f);
                height: 10px;
                width: 100%;
                position: relative;
                max-height: 10px;
            }
        }
    }

    .pagination {
        margin: 80px auto 0;
    }

    .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-resource-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-resource-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;
				}
			}
        }

        .resource-search-btn {
            margin-top: 7px;
        }
    }
    
	.c-resource-search__header {
		color: var(--color-brand-red-orange);
		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%;
		}
	}
}