﻿h1, h2, h3, p, ul {
    margin: 0;
    padding: 0;
}
.sub-input-display {
    margin-top: 25px;
}

    .sub-input-display span {
        white-space: nowrap;
    }

        .sub-input-display span img {
            margin-right: 10px;
        }

        .sub-input-display span:nth-child(2) {
            width: 25px;
            display: inline-block;
        }

.header-image {
    margin: 0 auto;
}
.header-image img {
    width:100%;
    height:auto;
    object-fit:cover;
}
    .header-image img:nth-child(2) {
        display: none;
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    .header-image img:nth-child(3) {
        display: none;
        margin:auto;
    }
#top-section-content-grid {
    display: grid;
    grid-template-columns: 185px 625px 600px;
    max-width: 1575px;
    margin: auto;
}

    #top-section-content-grid>div:nth-child(2) {
        padding-right:75px;
    }

    #top-section-content-grid h1 {
        font-size: 4rem;
        margin: 0;
        font-weight: 500;
        line-height: 1.25;
        white-space: nowrap;
    }

    #top-section-content-grid h1 > span {
        font-weight: 900;
        display: block;
    }

    #top-section-content-grid h5 {
        font-size: 1.5rem;
        font-weight: 500;
        line-height: 1.5;
    }
    
.find-scholarships-button {
    width: 350px;
}

    #top-section-content-grid .find-scholarships-button {
    width: 100%;
}
    #top-section-content-grid .find-scholarships-button a {
        width: 400px;
        max-width: 100%;
    }
.section-background2 .find-scholarships-button {
    margin: 0 auto;
}
.winners-grid .find-scholarships-button {
    margin-bottom: 2rem;
}
.find-scholarships-button a {
    display: inline-block;
    font-size: 1.5rem;
}

#featured-side-grid {
    display: inline-grid;
    width: 100%;
}

.section-background2 h2, .section-background4 h2 {
    font-size: 3rem;
    margin: 0;
    text-align: center;
    width: 100%;
    font-weight: 700;
    text-shadow: 2px 0 currentColor;
    letter-spacing: 2px;
}

    #featured-side-grid p {
        text-align: center;
        font-weight: bold;
        width: 100%;
        margin-bottom: 15px;
        font-size: 1.2rem;
        margin: 0 0 30px 0;
    }
#featured-content-grid> section {
    display: grid;
    grid-template-columns: repeat(2, 2fr);
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1209px;
    margin: 100px auto 0 auto;
}
.featured-card {
    display: grid;
    grid-template-columns: 200px minmax(300px, auto);
    height: 400px;
    box-shadow: 0px 9px 20px rgba(15, 119, 113, 0.15);
}
.featured-card-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    min-height: 200px;
    vertical-align: top !important;
    flex-grow: 1;
}
        .featured-card-text-wrapper > div:first-child {
            display: flex;
            flex-direction: column;
            justify-content: flex-start;
            height: 50%;
            vertical-align: top !important;
        }
        .featured-card-text-wrapper > div:last-child {
            height: 40px;
            vertical-align: top !important;
        }
            .featured-card-text-wrapper > div:last-child > a {
                position: relative;
                top: 10px;
            }
    .featured-card-text-wrapper > div:first-child > p:nth-child(1) {
        font-size: 1.5rem;
        font-weight: 700;
    }
        .featured-card-text-wrapper > div:first-child > p:nth-child(2) {
            font-size: 1.5rem;
            font-weight: 500;
        }
.featured-card img {
    width: 100%;
    max-height: 400px;
    min-height: 250px;
    object-fit: cover;
}
.educatorSection h1, .educatorSection h2, .educatorSection h3, .educatorSection p, .educatorSection ul, .howItWorksSection h1, .howItWorksSection h2, .howItWorksSection h3, .howItWorksSection p, .howItWorksSection ul {
    margin: 0;
    padding: 0;
}
.educatorSectionWrapper {
    background: url('/img/grads_throw_hats_background.webp');
    background-position: 50% 0%;
    background-size: cover;
    background-repeat: no-repeat;
    margin-bottom: -5vw;
    padding-bottom: 5vw;
    padding-top: 5vw;
    clip-path: polygon(0 0, 100% 5vw, 100% 100%, 0 calc(100% - 5vw));
}
.educatorSection, .howItWorksSection {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
    .educatorSection h2, .howItWorksSection h2, .howItWorksSection .section-headline {
        font-size: 3rem;
    }
    .educatorSection h3, .howItWorksSection h3 {
        font-size: 1.25rem;
    }
.section-subheading {
    font-size: 1.5rem;
    margin-top: -1rem;
}
.gridWrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}
.grid-element {
    background: #FFFFFF;
    box-sizing: border-box;
    width: min(360px, 100%);
    min-height: 200px;
    border-top: 5px solid #0F7771;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    cursor: pointer;
    transition: .15s ease-in-out;
}
.grid-element img {
    position: relative;
    top: 5px;
}
.grid-element__resources {
    border-color: #30CEBB;
}
.grid-element:hover, .grid-element:active {
    background: #0F7771;
    color: #FFFFFF;
    border-top: 5px solid transparent;
}
.grid-element__resources:hover, .grid-element__resources:active {
    background: #30CEBB;
    color: #FFFFFF;
    border-top: 5px solid transparent;
}
.grid-element:hover img, .grid-element:active img {
    border-radius: 50%;
    border: 2px solid #FFFFFF;
    margin: -2px;
}
.grid-element > div {
    display: flex;
    gap: 1rem;
}
.buttonWrapper {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}
    .buttonWrapper > a {
        width: 220px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
.winners-grid div:nth-child(1) > h2 {
    font-size: 3rem;
    font-weight: 400;
}
.textWithUnderline {
    display: flex;
    flex-direction: column;
}
.winners-grid #spn-winners {
    font-weight: 900;
    max-width: fit-content;
}
.winners-grid .side-bar-text {
    margin-top: 20px;
}
.howItWorksSection {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}
    .howItWorksSection > div {
        width: 45%;
        min-width: min(100%, 400px);
    }
    .howItWorksSection > div:nth-of-type(1) {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            align-self: flex-start;
            align-items: flex-start;
        }
    .howItWorksSection h2 {
        font-size: 3rem;
        font-weight: 400;
    }
    .howItWorksSection h2 > span {
        display: flex;
        flex-wrap: wrap;
        gap: 0 10px;
    }
    .howItWorksSection #spn-works {
        font-weight: 900;
        max-width: fit-content;
    }
        .howItWorksSection .big-button {
            margin: 0;
        }
    .howItWorksSection ul {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    .howItWorksSection li {
        list-style: none;
        background-repeat: no-repeat;
        display: flex;
    }
        .howItWorksSection li > div {
            margin-left: 95px;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }
        .howItWorksSection li:nth-child(1) {
            background-image: url('/img/greengradcap.svg');
        }
        .howItWorksSection li:nth-child(2) {
            background-image: url('/img/stackedbooks.svg');
        }
        .howItWorksSection li:nth-child(3) {
            background-image: url('/img/yellowbook.svg');
        }
        .howItWorksSection li:nth-child(4) {
            background-image: url('/img/cursorlight.svg');
        }
@media(max-width:1700px) {
    .green-dot-container{
    display:none;
    }
    #top-section-content-grid {
        display: grid;
        grid-template-columns: 54% 46%;
        max-width: 1209px;
        margin: auto;
    }
        #top-section-content-grid > div:nth-child(2) {
            padding-right: 75px;
        }
}
@media(max-width: 1250px) {
    .heroText {
        align-items: center;
        text-align: center;
    }
    .heroText-headline {
        display: flex;
        flex-wrap: wrap;
        gap: 0 1rem;
        justify-content: center;
    }
    .heroText p {
        max-width: 100%;
    }
    .featured-card {
        display: flex;
        flex-direction: column-reverse;
        height: 100%;
    }
    .featured-card-text-wrapper {
        justify-content: space-between;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .featured-card-text-wrapper > div:first-child {
            gap: 1rem;
        }
    .educatorSection h2 > svg {
        margin: auto;
    }
    .section-subheading {
        text-align: center;
    }
    .gridWrapper {
        gap: 1rem;
    }
    .howItWorksSection > div {
        width: 80%;
        margin: 0 auto;
    }
        .howItWorksSection > div:nth-of-type(1) {
            justify-content: center;
            width: 100%;
        }
    .howItWorksSection h2 > span {
        justify-content: center;
        text-align: center;
    }
    .howItWorksSection ul {
        display: flex;
        flex-direction: row;
        gap: 2rem;
    }
    .howItWorksSection li {
        width: 30%;
        max-width: 800px;
        align-self: flex-start;
        background-position-x: 40%;
    }
        .howItWorksSection li > div {
            margin-left: 0;
            margin-top: 95px;
        }
}
@media(max-width:1000px){
    .header-image {
        padding-left: 40px;
    }
    .howItWorksSection ul {
        flex-direction: column;
    }
    .howItWorksSection li {
        width: 100%;
        flex-direction: row;
        background-position-x: 0%;
    }
        .howItWorksSection li > div {
            margin-left: 95px;
            margin-top: 0;
            gap: 0.5rem;
        }
}
@media(max-width:834px) {
    #top-section-content-grid {
        grid-template-columns: 50% 50%;
        max-width: 834px;
    }

        #top-section-content-grid h1 {
            font-size: 2.2rem;
        }
    #top-section-content-grid > div:nth-child(2) {
        padding-right: 25px;
    }

        .header-image img:nth-child(1) {
            display: none;
        }

        .header-image img:nth-child(2) {
            display: inline;
        }
    .sub-input-display span:nth-child(3) {
        display:block;
        margin:15px 0;
    }
    .find-scholarships-button {
        max-width: 280px;
    }
    .find-scholarships-button a {
        font-size: 1.2rem;
    }
    #featured-content-grid > section {
        display: block;
    }
    #featured-content-grid .slick-slide {
        display: inline-flex;
    }
    .slick-list {
        overflow: hidden !important;
    }
}
@media(max-width:600px) {
    .header-image {
        padding: 0;
        margin-bottom: 0;
    }

        .header-image img:nth-child(2) {
            display: none;
        }

        .header-image img:nth-child(3) {
            display: flex;
            width: 70%;
        }

    #top-section-content-grid {
        grid-template-columns: 100% 100%;
    }

        #top-section-content-grid > div:nth-child(2) {
            grid-row: 2;
            display: flex;
            flex-wrap: wrap;
            flex-direction: column;
            gap: 20px;
            padding-right: 0;
            margin-top: 15px;
            align-items: center;
        }

        #top-section-content-grid > div:nth-child(3) {
            grid-row: 1;
        }

        #top-section-content-grid h1 {
            font-size: 2rem;
            text-align: center;
        }

        #top-section-content-grid h5 {
            font-size: 1.125rem;
            margin: 0;
            text-align: center;
            max-width: 90%;
        }

    .find-scholarships-button {
        display: flex;
    }

    .sub-input-display {
        margin: 0 0 0 -30px;
        align-self: center;
    }

    .section-background2 h2 {
        font-size: 2rem;
    }

    .heroText-headline span {
        font-size: 2.5rem;
        gap: 0 1rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .heroText p {
        font-size: 1.5rem;
        margin: 5px 0;
    }

    .winners-grid > div:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
    }

    .winners-grid div:nth-child(1) > h2 {
        text-align: center;
        font-size: 2rem;
    }
    .textWithUnderline {
        align-items: center;
    }
    .educatorSectionWrapper {
        background: #30CEBB30;
    }
    .educatorSection h2, .howItWorksSection h2, .howItWorksSection .section-headline {
        font-size: 2rem;
    }
    .section-subheading {
        font-size: 1.25rem;
        margin-top: -1rem;
    }
    .grid-element > div {
        gap: 0;
    }
    .grid-element img {
        display: none;
    }
}
@media(max-width: 409px) {
    #spn-winners-underline {
        float: inherit;
        margin: auto;
    }
}
@media(max-width: 400px) {
    .educatorSection h3, .howItWorksSection h3 {
        font-size: 1.1rem;
    }
    .howItWorksSection {
        justify-content: center;
    }
        .howItWorksSection > div {
            width: 100%;
            margin: 0 auto;
        }
            .howItWorksSection > div:nth-of-type(1) > div {
                gap: 0 0.5rem;
            }
        .howItWorksSection li {
            background-position-x: 50%;
        }
            .howItWorksSection li > div {
                margin-left: 0;
                margin-top: 95px;
                align-items: center;
                text-align: center;
            }
}