/**
 *
 * Module: HTML/CSS
 * Lesson: 1
 * 
 */

 :root {
   --grey-dark: #292b2c;
   --grey-light: #e4e4e4;
   --orange-dark: #c05326;
   --orange-light: #f7eae4;
   --white: #fff;
 }

body {
  margin: 0;
}

body,
button {
  font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
  color: var(--grey-dark);
  font-size: 1rem;
}

h1,h2,h3,h4,h5,h6 {
  margin-top: 0;
  margin-bottom: 0;
}

p {
  margin-top: 0;
  margin-bottom: 0;
}

.header,
.content,
.footer {
  padding: 0 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  margin-bottom: 1rem;
  padding-top: 1rem;
}

.header__logo {
  max-height: 90px;
  width: auto;
}

/* Navigation */

.navigation__list {
  display: flex;
  list-style: none;
}

.navigation__item {
  padding: 0.5rem 0;
  margin: 10px;
}

.navigation__link {
  color: var(--grey-dark);
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
}

.navigation__link:hover,
.navigation__link:focus {
  color: var(--orange-dark);
  text-decoration: underline;
}


/* Text styles */

.text-highlight {
  color: var(--orange-dark);
  font-weight: 600;
}

.arrow-right {
  display: inline-block;
  height: 0;
  width: 0;
  border: 6px solid var(--white);
  border-left-color: var(--orange-dark);
}


/* Buttons */

  /* INSERT BUTTON STYLES HERE */
  .donatenow {
    background-color: var(--orange-dark);
    border: none;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 0.5rem;
    border-radius: 4px;
    margin-left: 42px;
  }

  .Volunteer {
    background-color: var(--white);
    color: var(--orange-dark);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.5rem 0.5rem;
    cursor: pointer;
    border-radius: 4PX;
    margin-top: 10px;
  }
  


/* Content */

.content {
  display: flex;
  flex-direction: column;
}

/* Alert */

.alert {
  background-color: var(--orange-light);
  border-left: 4px solid var(--orange-dark);
  border-radius: 4px;
  font-size: 0.85rem;
  line-height: 1.3;
  padding: 1.5rem 1rem;
  margin-bottom: 2rem;
}

/* hero */

.hero {
  background-image: url(../images/header-bike.jpg);
  background-size: cover;
  background-position: center;
  height: 320px;
  background-color: var(--grey-light);
  margin-bottom: 25px;
}

.hero h1 {
  margin-bottom: 0.8rem;
  font-size: 2rem;
  color: white;
  padding-top: 3.8rem;
  padding-left: 40PX;
}

.hero p {
  margin-bottom: 2rem;
  color: #fff;
  padding-left: 40PX;
  font-weight: 600;
}


/* Headings */

.heading-underline {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--orange-light);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
}

.heading-underline:before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 25%;
  height: 2px;
  max-width: 100px;
  background: var(--orange-dark);
}


/* Article */
.articleparent {
  display: flex;
}
.article {
  margin-bottom: 1rem;
  border-style: groove;
  padding: 10px;
  margin-left: 5px;
  margin-right: 5px;
  flex: 1;
}

.articlesidebar {
  margin-bottom: 1rem;
  border-style: groove;
  padding: 10px;
  flex: 0;
  display: flex;
}

.article__title {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  max-width: 220px;
}

.article__title-link {
  text-decoration: none;
  color: var(--orange-dark);
}

.article__summary {
  margin-top: 0;
  margin-bottom: 1rem;
}

.article__thumbnail {
  object-fit: contain;
  width: 5rem;
  float: left;
  padding: 10px;
}

.article__read-more {
  margin-top: 0;
}

.article__read-more a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange-dark);
  text-decoration: none;
}

.article__read-more a:hover,
.article__read-more a:focus {
  text-decoration: underline;
}

.fa {
  margin-right: 0.5rem;
  color: var(--orange-dark);
}

.facebook-link {
  color: var(--orange-dark);
  text-align: end;
}

/* Sidebar */

.sidebar {
  display: flex;
  flex-direction: column;
  min-width: 350px;
}

/* Footer */

.footer {
  margin-top: 2rem;
}

.footer__content {
  border-top: 2px solid var(--orange-light);
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.footer p {
  padding-bottom: 1rem;
  text-align: center;
  font-size: 0.85rem;
}

/* Media queries */

@media screen and (min-width: 992px) {
  .content {
    flex-direction: row;
  }

  .main {
    padding-right: 2rem;
  }
}
