/**
 *
 * 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 1rem;
}

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

.navigation__link:hover {
  color: var(--orange-dark);
}


/* 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 */

.btn-primary {
  background-color: var(--orange-dark);
  color: var(--white);
  bottom: none;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border-radius: 4px;
  cursor:pointer;
}

.btn-secondary {
  background-color: var(--grey-light);
  color: var(--orange-dark);
  bottom: none;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  border-radius: 4px;
  cursor:pointer;
}

.btn-primary:hover {
  background-color: var(--white);
  color: var(--orange-dark);
}

.btn-secondary:hover {
  background-color: var(--orange-dark);
  color: var(--white);
}

/* 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;
  background-repeat: no-repeat;
  padding: 7rem 2rem;
  margin-bottom: 3rem;
}

.hero h1 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
  color: var(--white);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--white);
}

/* 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 */

.article {
  border: 1px solid var(--grey-light);
  padding: 1rem;
  border-radius: 4px;
  background-color: var(--white);
}

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

.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;
}

.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);
}

/* Sidebar */

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

.sidebar .article {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem; /* space between each event box */
}

.sidebar .article__content {
  margin-left: 1rem;
}

/* Social Media link */
.facebook-link {
  color: var(--orange-dark);
  margin-top: 0rem; /* adds space above the link */
  display: inline-block;
  font-weight: 600;
  text-decoration: underline;
  text-align: right;
}

/* 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;
  }

  .articles {
    display:flex;
    gap: 1rem; /* space between articles boxes */
  }
}