main {
    background-color: white;
    min-height: 800px;
    padding-left: 50px;
    padding-right: 50px;
    padding-top: 50px;
    padding-bottom:  50px;
    position: relative;
}

body {
    display: grid;
    grid-template-columns: 250px auto;
    grid-template-rows: 150px 250px auto 150px;
    column-gap: 4px;
}

header {
    padding-top: 50px;
    text-align: center;
    background-color: white;

}


nav {
    column-gap: 4px;
    padding-left: 50px;
    display: inline-flex;
    flex-direction: column;
    background-color: white;
    justify-content: flex-end;
    align-self: end;
    height: 100%;
}

.second-nav {
    padding-left: 50px;
    margin-bottom: -25px;
    display: inline-flex;
    flex-direction: column;
}

.second-nav a:hover {
    text-decoration: underline;
}

nav a:first-child:hover {
    color: #ff6b6b;
}

nav a:nth-child(2):hover {
    color: #ffcb77;
}

nav a:nth-child(3):hover {
    color: #17c3b2;
}

nav a:nth-child(4):hover {
    color: #4164aa;
}

nav a:last-child:hover {
    color: #ff6b6b;
}


header img {
    width: 150px;
    height: auto;
}

.hero-image-wrapper {
    padding: 50px;
    background-color: white;

}

.hero-image-background {
    display: grid;
}

.hero-image {
    align-self: stretch;
    justify-self: stretch;
    animation: colorchange 100s;
    /* animation-name followed by duration in seconds*/
    /* you could also use milliseconds (ms) or something like 2.5s */
    -webkit-animation: colorchange 100s;
    /* Chrome and Safari */
    animation-iteration-count: infinite;
}

.hero-image-style {
    height: 200px;
    width: auto;
    background-image: url(header-pic.svg);
    background-repeat: no-repeat no-repeat;
    background-position: 100% 100%;
    background-size: cover;
}

.divider-image-style {
    height: 250px;
    width: auto;
    background-image: url(header-pic2.svg);
    background-repeat: no-repeat no-repeat;
    background-position: 100% 100%;
    background-size: cover;
}



.bye {
    grid-column-start: 1 / span 1;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-gap: 20px;
    padding-left: 2vw;
    margin-top: 4px;
    background-color: white;
    place-content:  start;
}


.bye h2 {
   margin-top: 1rem;
   margin-bottom: 1rem;
}

.videotext-wrapper {

}



.collab {
    grid-column: 2 / 5;

}


.cocareintro {
    display: grid;
    padding: 20px;
    max-height: 100% max-width: auto;
    place-self: end;
    /*    background-color: rgba(23,195,178, 0.3);*/
}

.border-black {
    border: 3px solid black;
    border-bottom-width: 8px;
}

.border-blue {
    border: 3px solid #4164aa;
    border-bottom-width: 8px;
}

.border-red {
    border: 3px solid #ff6b6b;
    border-bottom-width: 8px;
}

.border-yellow {
    border: 3px solid #ffcb77;
    border-bottom-width: 8px;
}

.border-green {
    border: 3px solid #17c3b2;
    border-bottom-width: 8px;
}

.cocareintro-logos {
    align-self: center;
}

.cocareintro-logos img {
    padding: 10px;
    width: 90px;
    object-fit: cover;
}

.cocarebackground {
    height: 250px;
    width: 100%;
    background-color: #ffcb77;
    position: absolute;
    bottom: 0;
    margin-left: -50px;
    padding-right: 100px;
}

.partners h2 {
    margin: 0px 0;
    padding: 30px 0;
    text-align: center;
}

.partners {
    margin-top: 50px;
    margin-left: 0px;
    margin-right: 0px;
    padding: 25px;
}

.partners div {
    padding: 0 50px 50px 50px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
}

.partners img {
    height: auto;
    width: 100%;
    max-width: 300px;
    object-fit: cover;
}

.senso p {
    column-width: 14em;
    column-count: 2;
    column-gap: 25px;
}


.components {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 20px;
    align-content: stretch;


}

.components div {
    display: grid;
    text-align: center;
}

.components p {
    padding: 10px;

}

.components img {
    width: 100%;
    height: auto;
}

.components figure {
    align-self: end;
    margin-bottom: -5px;
    padding: -10px;
}

.team-logo {
    width: 150px;
    height: auto;
}

.team-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0;
    padding: 0;
}

.partner-link {
    display: block;
    width: 100%;
    text-decoration: none;
    margin: 0;
    cursor: pointer;
}


.partner-link figure {
    color: #fff;
    position: relative;
    overflow: hidden;
    height: 100%;
}


.partner-link figure img {
    width: 100%;
    display: block;
    object-fit: cover;
    position: relative;
    height: 100%;
    z-index: 999;
    transition: transform 0.4s;
}

.partner-link figure:hover img {
    transform: translateY(-90px);
}

.partner-link figcaption {
    padding: 0;
    position: absolute;
    color: #fff;
    left: 0;
    bottom: 0;
    padding: 20px;
    height: 50px;
    width: 100%;
}

.partner-link h3 {
    color: white;
    margin: 0;
}

.partner-cta {
    margin: 0;
}

.social a {
    margin: 0;
    padding: 0;

}

.social {
    display: grid;
    grid-template-columns: repeat(4, 60px );
    margin-top: 50px;
    gap: 10px;
    place-items:  start;
}



.social a {
    width: 50px;
    height: 50px;
    border: 2px solid black;
    border-radius: 5px;
}


.twitter {
    background-image: url(social/twitter.svg);
}
.twitter:hover {
    background-image: url(social/twitter-white.svg);
    background-color: black;
}

.linkedin {
    background-image: url(social/linkedin.svg);
}

.linkedin:hover {
    background-image: url(social/linkedin-white.svg);
    background-color: black;
}


.facebook {
    background-image: url(social/facebook.svg);
}

.facebook:hover {
    background-image: url(social/facebook-white.svg);
    background-color: black;
}

.vimeo-social {
    background-image: url(social/vimeo-social.svg);
}

.vimeo-social:hover {
    background-image: url(social/vimeo-social-white.svg);
    background-color: black;
}

.youtube {
    background-image: url(social/youtube.svg);
}

.youtube:hover {
    background-image: url(social/youtube-white.svg);
    background-color: black;
}


.news-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    margin: 0;
    padding: 0;
}

.news-articles {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
}



.news-link {
    display: block;
    width: 100%;
    text-decoration: none;
    margin: 0;
    cursor: pointer;
}


.news-link figure {
    color: #fff;
    position: relative;
    overflow: hidden;
    height: 300px;
}


.news-link figure img {
    width: 100%;
    display: block;
    object-fit: cover;
    position: relative;
    height: 100%;
    z-index: 999;
    transition: transform 0.4s;
}

.news-link figure:hover img {
    transform: translateY(-90px);
}

.news-link figcaption {
    padding: 0;
    position: absolute;
    color: white;
    left: 0;
    bottom: 0;
    padding: 20px;
    height: 40px;
    width: 100%;
}

.news-link p {
    margin: 0;
}

.news-cta {
    margin: 0;
}

.newstitle {
    height: 100px;
}


.news-item {
    width: 50%;
    text-align: justify;
}


.news-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
.news-image {
    background-color: white;
    grid-column: 2 / span 1;
    grid-row: 1 / span 2;
}

header {
    grid-column: 1 / span 1;
    grid-row: 1 / span 1;
}

nav {
    grid-column: 1 / span 1;
    grid-row: 2 / span 1;
}

.second-nav {
    height: 100%;
    grid-row: 3 / span 2;
    background-color: white;
}


.people-link {
    display: block;
    width: 100%;
    text-decoration: none;
    margin: 0;
    cursor: pointer;
}


.people-link figure {
    color: #fff;
    position: relative;
    overflow: hidden;
    height: 100%;
}


.people-link figure img {
    width: 100%;
    display: block;
    object-fit: cover;
    position: relative;
    height: 100%;
    z-index: 999;
    transition: transform 0.4s;
}

.people-link figure:hover img {
    transform: scale(1.1);
}

.people-link figcaption {
    padding: 0;
    color: #fff;
    padding: 10px;
    height: 80px;
}

.people-link h3 {
    color: white;
    margin: 0;
    font-size: 0.9em;
}


.people-link p {
    color: white;
    margin: 0;
    font-size: 0.9em;
}

.people-cta {
    margin: 0;
}

.people-overview {
    display: inline-grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-gap: 20px;
}



@media only screen and (max-width: 1300px) {
 .news-item {
    width: 100%;
}

.people-overview {
    display: inline-grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 20px;
}
}

@media only screen and (max-width: 800px) {

.people-overview {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
}

body {
    display: block;
}

main {
    text-align: center;
    padding-left: 25px;
    padding-right: 25px;
}

.hero-image-wrapper {
    display: none;
}

nav {
    display: block;
    text-align: center;
    padding: 50px 0;
}

nav a {
    padding: 10px;
}

.second-nav {
    padding: 50px 0;
    display: block;
    text-align: center;
}

.second-nav  a {
    padding: 10px;
}

.videotext-wrapper {
    display: block;
    padding-bottom: 20px;
}

.components {
    display: block;
}

.components div {
    margin-top: 20px;
}

.galleries {
    grid-template-columns: initial;
}

.bye {
    grid-template-columns: 1fr;
    place-items: center;
    text-align: center;
}

.news-articles, .team-wrapper {
    grid-template-columns: initial;
}

.news-image {
   padding: 25px;
   height: 200px;
}

.partners div {
    display: grid;
    padding: 10px;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    place-items: center;  
    place-content: center;
    background-color: white;

}

.partners img {
    align-self: center; 
}

.social {
    place-content: center;
}

.news-item h1, h2 {
    text-align: center;
}

.news-item h3 {
    text-align: left;
}

.partner-link figcaption {
    padding: 20px 0px;
}

.news-link figcaption {
    padding: 20px 0px;
}

.senso p {
    text-align: justify;
}

  .subscribe-please {
  margin-top: 25px;
  margin-right: 25px;
  margin-left: 25px;
  
}
}
