/**
 *
 * 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;
  padding: 0 4rem;
}

/* 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;
  padding: 2rem;
}

.navigation__item {
  padding: 2rem;
}

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

/* INSERT BUTTON STYLES HERE */

/* 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-color: var(--grey-light);
  background-size: cover;
  background-position: center;
  color: var(--white);
  border-radius: 4px;
  padding: 6rem 2rem;
  margin-bottom: 3rem; /* moves the next section down */
}

.hero h1 {
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* 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;
}
.grid-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
  gap: 2rem; /* space between the two cards */
  margin-top: 1.5rem;
}

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

.article {
  margin-bottom: 1rem;
}

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

.sidebar .article {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.article__thumbnail {
  width: 5rem;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.article_learn_more {
  border: 1px solid #ccc; /* light border */
  border-radius: 8px; /* soften the edges */
  padding: 1.5rem; /* spacing inside the card */
  background: white; /* optional but clean */
}

.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 {
  display: flex;
  justify-content: flex-end;
  margin-right: 0.25rem;
  color: var(--orange-dark);
}

.facebook-link {
  display: flex;
  justify-content: flex-end;
  color: var(--orange-dark);
}

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

.btn {
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background-color: #b45f35; /* adjust shade to match design */
  color: white;
  border: 2px solid #b45f35;
}

.btn-secondary {
  background-color: white;
  color: #b45f35;
  border: 2px solid #b45f35;
}
.btn-primary:hover {
  background-color: white;
  color: #b45f35;
}

.btn-secondary:hover {
  background-color: #b45f35;
  color: white;
}
