/* Color styles */
:root {
  --text: #595959;
  --accent-red: #ea0017;
  --accent-blue: #166dfc;
  --text-dark: #2a2a2a;
  --white: #ffffff;

  /* Margins */
  --margin-outside: 1rem;
  --margin-bottom: 3rem;

  /* Max Width */
  --max-width: 1288px;
}

/* Fonts */
.libre-franklin {
  font-family: "Libre Franklin", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.playfair {
  font-family: "Playfair", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
}

/* Global Styles */
/* Navigation Bar */
.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: white;
  border-bottom: 1px solid #e9e9e9;
}

/* Left Navigation (Icon & Links) */
.left-side {
  display: flex;
  align-items: left;
  list-style: none;
}

/* Right Navigation (Subscribe & Sign-in) */
.right-nav {
  display: flex;
  align-items: center;
  gap: 15px;
  list-style: none;
}

/* Navigation Links */
.left-nav a,
.right-nav a {
  text-decoration: none;
  color: black;
  font-weight: bold;
  font-size: 14px;
}

/* Icons */
.nav-icon {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin-left: 8px;
}

.nav-icon li svg {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

/* Left */
.left-nav {
  display: flex;
  align-items: left;
  list-style: none;
  margin: 0px 0px 0px 16px;
  li {
    a {
      color: var(--text-dark);
      font-family: "Libre Franklin", sans-serif;
      font-size: 14px;
    }
    padding: 12px 16px;
  }

  @media only screen and (max-width: 768px) {
    display: none;
  }
}

/* Right */
.subscribe-button {
  background-color: var(--accent-blue);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;

  a {
    color: var(--white);
    font-family: "Libre Franklin", sans-serif;
    font-size: 14px;
  }

  @media only screen and (max-width: 768px) {
    display: none;
  }
}

.sign-in-button {
  margin: 0px 16px 0px 0px;

  a {
    color: var(--text-dark);
    font-family: "Libre Franklin", sans-serif;
    font-size: 14px;
  }
}

/* Logo */
.logo {
  display: grid;
  justify-content: center;
  padding: 32px 0px;
  border-bottom: 1px solid #e9e9e9;

  img {
    width: auto;
    height: 100px;
    justify-self: center;
    margin-bottom: 10px;
  }

  quote {
    font-family: "Playfair", serif;
    font-size: 16px;
    font-weight: 400;
    font-style: italic;
    color: var(--text);
    text-align: center;
  }

  @media only screen and (max-width: 768px) {
    display: none;
  }
}

/* Secondary Navigation */
.sub-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  border-bottom: 1px solid #e9e9e9;
  li {
    a {
      color: var(--text-dark);
      font-family: "Libre Franklin", sans-serif;
      font-size: 14px;
      font-weight: 300;
    }
    padding: 16px;
  }
  .live {
    color: var(--accent-red);
    a {
      color: var(--accent-red);
      font-weight: 600;
    }
  }
  .trending {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-dark);
    svg {
      width: 16px;
      height: 16px;
      margin-right: 5px;
    }
    a {
      font-weight: 600;
    }
  }

  @media only screen and (max-width: 768px) {
    display: flex;
    overflow-x: auto;
    max-width: var(--max-width);
    li {
      flex: 0 0 auto;
    }
    li a {
      font-size: 12px;
    }

    justify-content: flex-start;
  }
}

/* News Grid 1 */
.news-grid-1 {
  display: grid;
  grid-template-columns: 80% 20%;
  gap: 0px;
  padding: 0px 20px 20px 20px;
  max-width: var(--max-width);
  align-self: center;
  margin: 20px auto 20px auto;

  @media only screen and (max-width: 768px) {
    grid-template-columns: 1fr;
  }
}

.breaking-news-section {
  display: grid;
  grid-template-rows: min-content min-content;
  padding: 0px 20px 20px 20px;
  border-right: 1px solid #e9e9e9;

  @media only screen and (max-width: 768px) {
    grid-template-rows: auto;
    border-right: none;
  }
}

.breaking-news {
  display: grid;
  grid-template-columns: 30% 70%;
  padding: 20px 0px 20px 0px;
  border-bottom: 1px solid #e9e9e9;

  @media only screen and (max-width: 768px) {
    grid-template-columns: 1fr;
    border-bottom: 1px solid var(--text-dark);
  }
}

.news-headlines {
  display: grid;
  grid-auto-rows: min-content;
  justify-content: start;
  padding: 0px 20px 20px 0px;
  border-right: 1px solid #e9e9e9;
  max-width: var(--max-width);
  margin: 0 auto;

  @media only screen and (max-width: 768px) {
    border-right: none;
    padding: 0px 0px 0px 0px;
  }
}

.headline-1 {
  padding: 0px 0px 20px 0px;

  h1 {
    font-family: "Playfair", sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
  }

  p {
    font-family: "Libre Franklin", sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: var(--text);
    margin-bottom: 12px;
  }

  quote {
    font-family: "Libre Franklin", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: var(--text);
  }

  @media only screen and (max-width: 768px) {
    h1 {
      margin-bottom: 10px;
      font-size: 24px;
    }
    p {
      font-size: 12px;
      margin-bottom: 8px;
    }
    quote {
      font-size: 10px;
    }
  }
}

.news-headline-image-mobile {
  display: none;

  @media only screen and (max-width: 768px) {
    display: block;
    img {
      width: 100%;
      height: auto;
    }
    h4 {
      font-family: "Libre Franklin", sans-serif;
      font-size: 12px;
      font-weight: 200;
      color: var(--text);
      margin-top: 8px;
      margin-bottom: 8px;
    }
  }
}

.headline-2 {
  padding: 20px 0px 20px 0px;
  border-top: 1px solid #e9e9e9;

  h2 {
    font-family: "Playfair", serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
  }

  @media only screen and (max-width: 768px) {
    padding: 10px 0px 10px 0px;

    h2 {
      font-size: 20px;
    }
  }
}

.news-headline-image {
  padding: 0px 0px 0px 20px;

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

  h4 {
    font-family: "Libre Franklin", sans-serif;
    font-size: 12px;
    font-weight: 200;
    color: var(--text);
    margin-top: 8px;
  }

  @media only screen and (max-width: 768px) {
    display: none;
  }
}

.opinions {
  display: grid;
  grid-template-rows: auto 1fr 1fr 1fr 1fr 1fr;
  justify-content: left;
  align-items: left;
  gap: 0px;
  padding: 20px 20px 20px 20px;

  @media only screen and (max-width: 768px) {
    border-bottom: 1px solid var(--text-dark);
  }
}

.opinion-title {
  div {
    display: flex;
  }

  h3 {
    font-family: "Libre Franklin", sans-serif;
    font-size: 16px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-decoration: underline;
    text-decoration-color: var(--accent-red);
  }
}

.opinion {
  display: grid;
  grid-template-columns: auto min-content;
  gap: 20px;
  padding: 16px 0px 16px 0px;
  border-bottom: 1px solid #e9e9e9;
}

.profile-image {
  img {
    width: 50px;
    height: 50px;
  }
}

.opinion-text {
  display: grid;
  grid-template-rows: auto auto;
  gap: 5px;

  h4 {
    font-family: "Libre Franklin", sans-serif;
    font-size: 12px;
    font-weight: 200;
    color: var(--text);
  }

  p {
    font-family: "Playfair", serif;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    color: var(--text);
  }
}

/* Grid 2 */

.news-grid-2 {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 20px;
  padding: 0px 20px 20px 20px;
  max-width: var(--max-width);
  align-self: center;
  margin: 0px auto 20px auto;

  @media only screen and (max-width: 768px) {
    grid-template-columns: 1fr;
  }
}

.news-grid-2-side-left {
  border-top: 1px solid var(--text);
  padding-top: 1%;
  padding-right: 5%;
  border-right: 1px solid #e9e9e9;

  @media only screen and (max-width: 768px) {
    border-right: none;
  }
}

.news-grid-2-side-right {
  border-top: 1px solid var(--text);
  padding-top: 1%;
  padding-right: 4%;
}

.news-grid-2-title {
  display: flex;

  h3 {
    font-family: "Libre Franklin", sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
  }
}

.grid-2-news-news {
  display: grid;
  grid-template-columns: 50% 50%;
  gap: 20px;
  max-width: var(--max-width);
  align-self: center;
  margin: 20px auto 20px auto;

  @media only screen and (max-width: 768px) {
    grid-template-columns: 1fr;
  }
}

.news-subheadline {
  display: grid;
  grid-auto-rows: min-content auto;
  gap: 5px;
  padding-right: 5%;
  border-right: 1px solid #e9e9e9;

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

  h2 {
    font-family: "Playfair", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
  }

  @media only screen and (max-width: 768px) {
    padding-right: 0px;
    border-right: none;
    h2 {
      font-size: 24px;
    }
  }
}

.news-article {
  box-sizing: border-box;
  padding: 20px 0px 20px 0px;
  border-top: 1px solid #e9e9e9;

  h3 {
    font-family: "Playfair", serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
  }
}

.news-article-top {
  padding: 0px 0px 20px 0px;

  h3 {
    font-family: "Playfair", serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
  }
}

/* Grid 3 */

.news-grid-3 {
  display: grid;
  padding: 20px 20px 0px 20px;
  max-width: var(--max-width);
  align-self: center;
  margin: 0px auto 20px auto;
  border-top: 1px solid var(--text);
}

.news-grid-3-title {
  display: grid;
  grid-template-rows: auto auto;

  @media only screen and (max-width: 768px) {
    margin-bottom: 10px;
  }
}

.news-grid-3-title-bar {
  display: grid;
  grid-template-columns: auto min-content;

  @media only screen and (max-width: 768px) {
    grid-template-columns: 1fr;
  }
}

.search-bar {
  display: grid;
  grid-template-columns: max-content min-content;
  gap: 100px;
  padding: 15px;
  border: 1px solid #e9e9e9;

  p {
    font-family: "Libre Franklin", sans-serif;
    font-size: 14px;
    font-weight: 200;
    color: var(--text);
  }

  svg {
    width: 16px;
    height: 16px;
    color: var(--text);
  }

  @media only screen and (max-width: 768px) {
    grid-template-columns: auto min-content;
  }
}

.news-grid-3-subtitle {
  display: flex;

  h2 {
    font-family: "Libre Franklin", sans-serif;
    font-size: 14px;
    font-weight: 200;
    color: #595959;
  }
}

.news-grid-3-recipes {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px 0;
  max-width: var(--max-width);
  margin: 0 auto;

  @media only screen and (max-width: 768px) {
    max-width: 100%;
  }
}

.recipe {
  display: grid;
  grid-template-rows: min-content auto;
  gap: 5px;
  padding: 0px 0px 20px 0px;

  h2 {
    font-family: "Playfair", serif;
    font-size: 20px;
    font-weight: 400;
    color: var(--text-dark);
  }

  img {
    height: 200px;
    width: 160px;
  }
}

.recipe-details {
  display: grid;
  gap: 5px;
  grid-template-columns: max-content min-content auto;

  p {
    font-family: "Libre Franklin", sans-serif;
    font-size: 12px;
    font-weight: 200;
    color: var(--text);
  }
}

/* Footer */
footer {
  width: 80%;
  padding: 0px auto 0px auto;
  justify-self: center;
  border-top: 1px solid #e9e9e9;
  border-bottom: 1px solid #e9e9e9;

  @media only screen and (max-width: 768px) {
    padding: 0px 0px 0px 0px;
    justify-self: start;
    width: 100%;
  }
}

.footer-logo {
  img {
    width: 25%;
    height: auto;
  }

  padding: 8px 20px 20px 20px;

  @media only screen and (max-width: 768px) {
    padding: 20px 0px 20px 20px;
    img {
      width: 75%;
      max-width: 50%;
    }
  }
}

.footer-links {
  width: 80%;
  display: grid;
  grid-template-rows: auto auto;
  gap: 20px;
  justify-content: space-around;
  align-items: top;
  align-self: center;
  max-width: var(--max-width);
  padding: 20px;
  margin: 0 auto;
  color: var(--text);

  @media only screen and (max-width: 768px) {
    padding: 0px 0px 0px 0px;
    margin: 0px 0px 0px 0px;
    grid-template-columns: 1fr;
    width: 100%;
  }
}

.link-lists {
  display: flex;

  @media only screen and (max-width: 768px) {
    display: none;
  }
}

.link-lists-mobile {
  display: none;
  width: 100%;

  @media only screen and (max-width: 768px) {
    display: block;
    padding: 0px 20px 0px 0px;
  }
}

.link-list-mobile {
  summary {
    font-family: "Libre Franklin", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);

    list-style: none;

    display: grid;
    grid-template-columns: auto min-content;
    gap: auto;

    padding-bottom: 20px;
    border-bottom: 1px solid #e9e9e9;

    svg {
      width: 16px;
      height: 16px;
      color: var(--text-dark);
    }
  }

  ul,
  li,
  a {
    list-style: none;
    text-decoration: none;
    color: var(--text-dark);
    font-family: "Libre Franklin", sans-serif;
    font-size: 12px;
    font-weight: 200;
    padding: 6px 0px 6px 0px;
  }

  padding: 0px 20px 0px 20px;

  @media only screen and (max-width: 768px) {
    margin-bottom: 20px;
  }
}

.link-list {
  h3 {
    font-family: "Libre Franklin", sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
  }

  ul,
  li,
  a {
    list-style: none;
    text-decoration: none;
    color: var(--text-dark);
    font-family: "Libre Franklin", sans-serif;
    font-size: 12px;
    font-weight: 200;
    padding: 6px 0px 6px 0px;
  }

  padding: 0px 20px 0px 20px;

  @media only screen and (max-width: 768px) {
    margin-bottom: 20px;
  }
}

.footer-copyright {
  border-top: 1px solid #e9e9e9;

  p {
    padding: 20px 0px 0px 0px;
    font-family: "Libre Franklin", sans-serif;
    font-size: 12px;
    font-weight: 200;
    color: var(--text-dark);
    text-align: center;
  }
}
