/* Box Model Hack */
* {
  box-sizing: border-box;
  text-decoration: none;
}

/* Clear fix hack */
.clearfix:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}

.clear {
  clear: both;
}

/******************************************
/* VARS
/*******************************************/
:root {
  --color_1: rgb(105, 118, 136);
  --color_2: rgb(220, 223, 226);
  --color_3: rgb(24, 31, 41);
}

/******************************************
/* BASE STYLES
/*******************************************/

body {
  line-height: 1.5;
  font-family: Arial, Helvetica, sans-serif
}

html, body {
    width: 100%;
    height: 100%;
}


/******************************************
/* LAYOUT
/*******************************************/
header,
.banner {
  background-color: var(--color_1);
}

.why,
.banner,
.volunteer,
.services {
  padding: 100px 0;
}

/*******************************************/

header {
  justify-content: space-between;
  flex: 1 1 0;
  color: white;
  font-weight: bold;
}

.new_nav{
  display: none;
}

header nav li {
  padding-right: 30px;
}

header>* {
  flex: 1;
  text-align: center;
  padding: 20px;
}

header img {
  width: 30px;
}

header div {
  text-align: right;
}

header a {
  color: var(--color_1);
  text-align: right;
  background-color: white;
  border-radius: 6px;
  padding: 8px 10px;
}

/*******************************************/

.banner section {
  color: white;
  width: 60%;
  margin: auto;
  text-align: center;
}

.banner h1 {
  font-size: 3rem;
}

.banner p {
  font-size: 1.2rem;
  margin: 30px 0;
  font-weight: bold;
}

.banner a {
  font-size: 1.5rem;
  color: rgb(209, 209, 209);
}

.banner img {
  width: 35px;
  margin-right: 10px;
  position: relative;
  top: 8px;
}

/*******************************************/

.why,
.volunteer {
  text-align: center;
  width: 40%;
  margin: auto;

}

/*******************************************/

.services {
  background-color: var(--color_2);

}

.services>section {
  width: 80%;
  margin: auto;
  text-align: center;
  gap: 50px;
}

.services section p {
  width: 80%;
  margin: auto;
}

.holder {
  width: 80%;
  height: 200px;
  background-color: var(--color_1);
  display: inline-block;
}

/*******************************************/

footer {
  background-color: var(--color_3);
  color: white;
  padding: 20px 60px 60px 60px;
}

footer a {
  color: white;
}

footer .top {
  flex-direction: row;
  width: 100%;
  justify-content: space-between;
}

footer .top ul {
  padding-bottom: 10px;
}

footer .top li{
  padding-right: 20px;
}

footer .bottom {
  border-top: 2px solid rgb(213, 213, 213);
  padding-top: 14px;
  margin-top: 14px;
  justify-content: space-between;
  align-items: center;
}

footer address {
  flex-direction: column;
}

footer address,
footer address a:nth-of-type(2) {
  color: rgb(115, 115, 115);
}

footer address span:first-of-type{
  display: block;
  margin-bottom: 10px;
  color: white;
}



footer .bottom img {
  height: 47px;
}

footer .top img {
  height: 30px;
}

/******************************************
/* ADDITIONAL STYLES
/*******************************************/


header,
header ul,
.services>section,
footer ul,
footer address,
footer .bottom,
footer .top,
footer .top>section ul {
  display: flex;
}

h2 {
  font-size: 1.7rem;
  font-weight: bold;
  margin-bottom: 10px;
}

h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 17px 0;
}

h5 {
  color: rgb(107, 107, 107);
  font-weight: bold;
}

.button {
  padding: 10px 50px;
  border: 1px solid gray;
  margin-top: 30px;
  display: inline-block;
  color: black;
}

/******************************************
/* @Media
/*******************************************/

@media screen and (max-width:1024px) {
  .why, .volunteer{
    width: 60%;
  }
}

@media screen and (max-width:890px) {
  .banner section {
    width: 80%;
  }

  footer .bottom {
    flex-direction: column;
    text-align: center;
    gap:10px;
  }
}

@media screen and (max-width:722px) {
  header h1{
    display: none;
  }

  .services>section{
    flex-direction: column;
  }

}

@media screen and (max-width:490px) {
  header{
    flex-wrap: wrap;
  }

  footer{
    padding: 10px 20px;
  }
  
  footer .top{
    flex-direction: column;
    gap: 40px;
  }

  footer .top address{
    text-align: right;
  }

  .why, .banner, .volunteer, .services{
    padding: 10px;
  }
  .banner h1 {
    font-size: 1.6rem;
}
    .why, .volunteer{
      width: 96%;
    }
}