@font-face {
    font-family: 'FuturaB';
    src: url('fonts/FuturaStd-Bold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'FuturaH';
    src: url('fonts/FuturaStd-Heavy.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'FuturaM';
    src: url('fonts/FuturaStd-Medium.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Rockwell';
    src: url('fonts/alternate/RockwellStd.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'RockwellB';
    src: url('fonts/alternate/RockwellStd-Bold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/*=============== VARIABLES CSS ===============*/
:root {
    --header-height: 3.5rem;

    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    /*
        White: hsl(0, 100%, 100%);
        Black: hsl(0, 100%, 100%);
        Bright-Orange: hsl(21, 94%, 55%);
        Light-Orange: hsl(37, 90%, 50%);
        Bright-Blue: hsl(208, 59%, 54%);
        Light-Blue: hsl(192, 45%, 68%);
        Dark-Tan: hsl(21, 30%, 77%);
        Light-Tan: hsl(36, 69%, 86%);
        Grey: hsl(30, 8%, 80%);
    */

    --text-color: hsl(0, 0%, 0%);
    --body-color: hsl(0, 100%, 100%);
    --container-one-color: hsl(21, 94%, 55%);
    --container-two-color: hsl(208, 59%, 54%);
    --container-three-color: hsl(21, 30%, 77%);
    --container-four-color: hsl(30, 8%, 80%);
    --sub-container-one-color: hsl(37, 90%, 50%);
    --sub-container-two-color: hsl(192, 45%, 68%);
    --sub-container-three-color: hsl(36, 69%, 86%);

    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --header-font: FuturaB, RockwellB;
    --body-font: FuturaH, Rockwell;
    --copy-font: FuturaM, Rockwell;
    --biggest-font-size: 3rem;
    --big-font-size: 2.45rem;
    --h1-font-size: 2rem;
    --h2-font-size: 1.25rem;
    --h3-font-size: 1rem;
    --normal-font-size: .938rem;
    --small-font-size: .813rem;
    --smaller-font-size: .75rem;
    --tiny-font-size: .625rem;
}

/* Responsive typography */
@media screen and (min-width: 968px) {
    :root {
        --biggest-font-size: 3.5rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }
}


/*=============== BASE ===============*/

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body,
footer {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
}

header {
    color: var(--text-color);
    display: flex;
    justify-content: space-between;
    font-family: var(--header-font);
}

body {
    background-color: var(--body-color);
    color: var(--text-color);
    transition: .4s;
}

h1,
h2,
h3 {
    color: var(--title-color);
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--text-color)
}

ul {
    list-style: none;
}

/*=============== REUSABLE CSS CLASSES ===============*/
/* .container {
    margin-left: 1rem;
    margin-right: 1rem;
} */

.grid {
    display: grid;
}

/*=============== HEADER & NAV===============*/
.header {
    width: 100%;
    left: 0;
    padding: 0px 10px;
    font: var(--header-font);
}

header h3 {
    font-family: var(--body-font);
}

.header-img {
    width: 100%;
}

.deafandhoh-img {
    height: 100px;
}

.deafandhoh-logo {
    display: flex;
    align-items: center;
    justify-content: right;
}

.nav-title {
    font-size: var(--biggest-font-size); 
}

.nav-term {
    font-size: var(--smaller-font-size);
}

.nav-contact {
    font-family: var(--body-font);
}

.nav-list-two .item{display: block;
    text-align: end;
}

/*=============== CARDS ===============*/

.cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.card {
     padding: 10px; 
}

.card h2 {
    color: var(--body-color);
    vertical-align: middle;
}

 /* .cards {
    display: flex;
    flex-wrap: wrap;
}  */

.card p{
    font-family: var(--copy-font);
    padding: 1rem;
    line-height: 1.4rem;
    color: var(--text-color)
}

.card-one h2 {
    background-color: var(--container-one-color);
}

.card-one p {
    background-color: var(--sub-container-one-color);
} 

.card-two h2 {
    background-color: var(--container-two-color);
}

.card-two p {
    background-color: var(--sub-container-two-color);
}

.card-three h2 {
    background-color: var(--container-three-color);
}

.card-three p {
    background-color: var(--sub-container-three-color);
}

.card-footer {
    background-color: var(--container-four-color);
    text-align: center;
    height: auto;
}

/*=============== FOOTER ===============*/

.card-footer {
    background-color: var(--container-four-color);
    padding: 10px;
    margin: 10px;
    text-align: center;
}

/* top row for logos */
.partners-container{
    /* display: grid;
    grid-template-columns: 1fr 1fr 1.5fr; */

    /* display: flex;
    flex-direction: column;
    align-items: center;  */

    display: grid;
    /* grid-template-columns: repeat(4, 1fr); */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem; /* Adjust the gap between logos */
    justify-items: center; /* Center align items in each grid cell */
    align-items: center; /* Center align items vertically */
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Bottom row for logos */
.logo-row { 
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    margin-bottom: 1rem;
} 

.partner img {
    max-width: 100%;
    height: auto;
    display: block;
} 
    
.partner{
    display: flex;
    align-items: center;
    justify-content: center;
} 

.partner-one{
    width: 220px;
    height: auto;
} 

.partner-two{
    width: 230px;
    height: auto;
} 

.partner-three{
    width: 250px;
    height: auto;
    overflow: hidden;
} 

.partner-four{
    width: 250px;
    height: auto;
} 

.partner-five{
    width: 230px;
    height: auto;
} 

.partner-six{
    width: 250px;
    height: auto;
} 

/*=============== RESPONSIVE DESIGN ===============*/

/* For small devices */
@media screen and (min-width: 320px) {
    .nav-container{
        display: grid;
        grid-template-columns: 55% 45%;
        width: 100%;
        justify-items: stretch;
        align-items: center;
    }

    .nav-list-one {
        display: grid;
        align-self: stretch;
    }

    .deafandhoh-img {
        width: 90px;
        height: auto;
    }

    .item-a {
        align-self: start;
    }
    
    .item-b {
        align-self: end;
    }

    .nav-term{
        font-size: var(--smaller-font-size);
        padding: 0.5rem 0rem;
    }

    .nav-title{
        font-size: x-large;
        padding-top: 0.5rem;
    }
    
    .nav-list-two .item-a {
        justify-self: end;
    }

    .nav-contact {
        font-size: xx-small;
        align-self: end;
        justify-self: end;
    }

    .card h2 {
        color: var(--body-color);
        display: table-cell;
        min-height: 500px;
        height: 100px;
        padding: 10px;
        vertical-align: middle;
        width: 1000px;
        flex-grow: 3;
    } 

    /* .card p {
        font-size: smaller;
        min-height: 350px;
        padding: 20px 10px;
        line-height: 1.4rem;
        color: var(--text-color);
    } */

    .card-one p {
        min-height: 300px;
    }

    .card-two p {
        min-height: 300px;
    }

    .card-three p {
        min-height: 300px;
    }

}

@media screen and (min-width: 412px) {
    .nav-container{
        display: grid;
        grid-template-columns: 60% 40%;
        width: 100%;
        justify-items: stretch;
        align-items: center;
    }

    .nav-list-one {
        display: grid;
        align-self: stretch;
    }

    .deafandhoh-img {
        width: 120px;
        height: auto;
    }

    .item-a {
        align-self: start;
    }
    
    .item-b {
        align-self: end;
    }

    .nav-term{
        font-size: var(--h3-font-size);
        padding-top: 1rem;
    }

    .nav-title{
        font-size: var(--big-font-size);
    }
    
    .nav-list-two .item-a {
        justify-self: end;
    }

    .nav-contact {
        font-size: var(--tiny-font-size);
        align-self: end;
        justify-self: end;
    }

    .card h2 {
        color: var(--body-color);
        display: table-cell;
        height: 100px;
        padding: 10px;
        vertical-align: middle;
        width: 1000px;
        flex-grow: 3;
    } 

    /* .card p {
        min-height: 430px; */
        /* padding: 20px 10px; */
        /* line-height: 1.4rem; */
        /* color: var(--text-color);
    } */

    .card-one p {
        min-height: 300px;
    }

    .card-two p {
        min-height: 300px;
    }

    .card-three p {
        min-height: 300px;
    }

}

/* For medium devices */
@media screen and (min-width: 548px) {
    .nav-container{
        display: grid;
        grid-template-columns: 50% 50%;
        width: 100%;
        justify-items: stretch;
        align-items: center;
    }

    .nav-list-one {
        display: grid;
        grid-template-rows: 50% 50%;
        align-self: stretch;
    }

    .deafandhoh-img {
        width: 200px;
        height: auto;
    }

    .item-a {
        align-self: start;
    }
    
    .item-b {
        align-self: end;
    }

    .nav-term{
        font-size: var(--h3-font-size);
        padding-top: 1rem;
    }

    .card {
        width: 100%;
    }

     .card h2 {
        color: var(--body-color);
        display: table-cell;
        height: 100px;
        padding: 10px;
        vertical-align: middle;
        width: 1000px;
        flex-grow: 3;
    } 

    /* .card p {
        min-height: 16rem;
    } */

    .card-one p {
        min-height: 300px;
    }

    .card-two p {
        min-height: 300px;
    }

    .card-three p {
        min-height: 300px;
    }
}

@media screen and (min-width: 765px) {
    .nav-container{
        grid-template-columns: 45% 55%;
    }

    .nav-title{
        font-size: var(--biggest-font-size);
    }

    .nav-contact{
        font-size: var(--small-font-size);
    }

     .card h2{
        font-size: var(--h2-font-size);
    } 

     .card {
        width: 30%;
        flex-grow: 3;
    }

    /*.card p {
        font-size: var(--normal-font-size);
        min-height: 38rem;
    } */

    .card-one p {
        min-height: 545px;
    }

    .card-two p {
        min-height: 300px;
    }

    .card-three p {
        min-height: 300px;
    }

}

/* For large devices */
@media screen and (min-width: 992px) {
    .nav-container{
        grid-template-columns: 45% 55%;
    }

    .deafandhoh-img {
        width: 220px;
        height: auto;
    }

    .nav-contact{
        font-size: var(--normal-font-size);
    }

    .item-a{
        padding-bottom: 1rem;
    }

    /* .card p {
        min-height: 35rem;
    } */

    .card-one p {
        min-height: 300px;
    }

    .card-two p {
        min-height: 300px;
    }

    .card-three p {
        min-height: 300px;
    }

}

@media screen and (min-width: 1200px) {
    .card {
        width: 30%;
        flex-grow: 3;
    }

     .card h2{
        font-size: var(--h2-font-size)
    } 

    /* .card p {
        min-height: 30rem;
        font-size: larger;
        line-height: 1.5rem; 

    } */

    .card-one p {
        height: 380px;
    }

    .card-two p {
        height: 380px;
    }

    .card-three p {
        height: 380px;
    }


}