@font-face {
  font-family: "Montserrat";
  src: url("/public/fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat Italic";
  src: url("/public/fonts/Montserrat-Italic-VariableFont_wght.ttf")
    format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

/* 
/////////////////////////////////////////////////
//////////////// VARIABLES /////////////////////
///////////////////////////////////////////////
*/
:root {
  /* LICORICE COLOR */
  --primary: hsl(0, 20%, 9%);
  --main-color: hsl(291, 35%, 5%);
  --lighter-main-color: hsl(291, 35%, 13%);
  --main-white: hsl(165, 100%, 99%);
  --gray: hsl(210, 20%, 80%);
}
/* 
/////////////////////////////////////////////////
////////////////// UTILS ///////////////////////
///////////////////////////////////////////////
*/

body {
  /* MAKES THINGS LIKE FIXED FOOTER WORK */
  position: relative;
  background-color: var(--main-color);
}
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  margin-block: 1rem;
  overflow: hidden;
}

.area-title {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
  color: var(--main-white);

  /* Desktop */

  @media (min-width: 768px) {
    font-size: 2.5rem;
  }
}

.area-description {
  color: var(--gray);
  margin-bottom: 1rem;

  /* Desktop */

  @media (min-width: 768px) {
    font-size: 1.3rem;
  }
}

.content-link {
  display: inline-block;
  background-color: var(--lighter-main-color);
  color: hsl(0, 0%, 100%);
  text-decoration: none;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: 1rem;
  padding: 0.7rem 1.3rem;
  font-size: 0.86rem;
  border-radius: 9999999px;
  width: 100%;
  text-align: center;

  /* DESKTOP */
  @media (min-width: 768px) {
    width: auto;
  }
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;

  /* Desktop */

  @media (min-width: 768px) {
    font-size: 3.5rem;
  }
}

.working-on {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 1.5rem;
  color: hsl(0, 0%, 80%);
  padding-top: 9rem;
  gap: 1rem;
}

.working-on img {
  width: 230px;
  height: 230px;
}

.working-on h3 {
  color: hsl(0, 0%, 0%);
}

/* 
/////////////////////////////////////////////////
//////////////////// NAV ///////////////////////
///////////////////////////////////////////////
*/

.nav {
  background-color: var(--lighter-main-color);
  padding: 1rem 2rem;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  width: 40px;
  height: 40px;
}

.logo-link {
  color: hsl(0, 0%, 100%);
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
}

.burger-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;

  /* Desktop */

  @media (min-width: 768px) {
    display: none;
  }
}
.nav-links {
  display: none;

  /* Desktop */

  @media (min-width: 768px) {
    display: flex;
    gap: 2rem;
  }
}

.nav-links a {
  color: hsl(0, 0%, 100%);
  text-decoration: none;
  font-weight: 700;
}

.burger-btn div {
  width: 25px;
  height: 3px;
  border-radius: 3px;
  background-color: hsl(0, 0%, 100%);
}
.nav-mobile {
  position: absolute;
  width: 100%;
  display: block;
  top: 60px;
  left: 0;
  padding: 1rem 2rem;
  opacity: 1;
  transition: opacity 0.3s ease;
  background-color: var(--lighter-main-color);
  color: hsl(0, 0%, 100%);

  /* Desktop */

  @media (min-width: 768px) {
    display: none;
  }
}

.nav-mobile a {
  display: block;
  padding: 0.5rem 0;
  color: hsl(0, 0%, 100%);
  text-decoration: none;
  font-weight: 700;
}

.nav-mobile.hidden {
  opacity: 0;
  pointer-events: none;
}

/* 
/////////////////////////////////////////////////
///////////////// CATEGORIES ///////////////////
///////////////////////////////////////////////
*/

.categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 0.5rem;

  /* DESKTOP */

  @media (min-width: 768px) {
    grid-template-columns: repeat(4, 1fr);
    place-items: center;
  }
}

.categories a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0;
  text-align: center;
  text-decoration: none;
  color: hsl(0, 0%, 100%);
  background-color: var(--lighter-main-color);
  font-weight: bold;
  border-radius: 99999999px;
  text-transform: uppercase;

  /* DESKTOP */

  @media (min-width: 768px) {
    width: 250px;
    max-width: 250px;
  }
}

.categories a img {
  width: 30px;
  height: 30px;
}
/* 
/////////////////////////////////////////////////
//////////////// BLOGS CARDS ///////////////////
///////////////////////////////////////////////
*/
.blogs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;

  /* DESKTOP */

  @media (min-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
  }
}

.blog-card {
  position: relative;
  background-color: var(--primary);
  color: hsl(0, 0%, 100%);
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.3s ease;
  height: 300px;

  /* 
    DESKTOP ONLY
  */

  @media (min-width: 768px) {
    max-height: auto;
  }
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

.blog-card .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.card-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0;
  /* DESKTOP */

  @media (min-width: 768px) {
    font-size: 1.5rem;
  }
}
.blog-tags {
  display: flex;
  width: 100%;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.blog-tags span {
  background-color: var(--lighter-main-color);
  color: hsl(0, 0%, 100%);
  padding: 0.5rem 0.9rem;
  border-radius: 9999999px;
  font-size: 0.85rem;
  /* DESKTOP */

  @media (min-width: 768px) {
    font-size: 0.9rem;
  }
}

.blogs-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  /* DESKTOP */

  @media (min-width: 768px) {
    flex-direction: row;
    justify-content: center;
  }
}

.blogs-grid.reversed {
  /* DESKTOP ONLY */
  @media (min-width: 768px) {
    flex-direction: row-reverse;
  }
}

.blogs-grid .blog-card {
  height: 100%;
  width: 100%;
}

.blogs-subgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  height: 100%;
  width: 100%;

  /* DESKTOP */

  @media (min-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tags-carousel {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.9rem;

  /* DESKTOP */

  @media (min-width: 768px) {
    padding-bottom: 1rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
}

.tags-carousel a {
  min-width: 120px;
  padding: 0.7rem 1.3rem;
  background-color: var(--lighter-main-color);
  color: hsl(0, 0%, 100%);
  text-decoration: none;
  border-radius: 9999999999px;
  text-align: center;
  scroll-snap-align: start;
}

/* 
/////////////////////////////////////////////////
/////////////// LISTS SEGMENT /////////////////
///////////////////////////////////////////////
*/

.lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* gap: 0.3rem; */

  /* DESKTOP */

  @media (min-width: 768px) {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.2rem;
  }
}

.list {
  display: block;
  position: relative;
  background-color: var(--primary);
  color: hsl(0, 0%, 100%);
  height: 400px;
  transition: transform 0.3s ease;
}

.list:hover {
  transform: translateY(-5px);
}

.list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* 
/////////////////////////////////////////////////
/////////////// QUOTES SEGMENT /////////////////
///////////////////////////////////////////////
*/
.quote-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: 10px;
  background-color: var(--lighter-main-color);
}
.quote-card h4 {
  color: var(--main-white);
}
.quote-card p {
  margin-top: 0.5rem;
  font-size: 1rem;
  margin-bottom: 1rem;
  font-style: italic;
  color: var(--gray);
}

.quote-card span {
  color: var(--gray);
  font-size: 0.9rem;
}
/* 
/////////////////////////////////////////////////
/////////////////// FOOTER /////////////////////
///////////////////////////////////////////////
*/

.footer {
  background-color: var(--lighter-main-color);
  color: hsl(0, 0%, 100%);
  text-align: center;
  padding: 2rem 2rem;
}

.footer.floating {
  /* Desktop Only */

  @media (min-width: 768px) {
    position: fixed;
    bottom: 0;
    width: 100%;
  }
}

.footer-note {
  font-size: 0.7rem;
  color: hsl(0, 0%, 80%);
  text-align: left;
  margin-bottom: 2rem;

  /* Desktop */
  @media (min-width: 768px) {
    font-size: 0.9rem;
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    text-align: center;
  }
}

/* 
/////////////////////////////////////////////////////////////////////
//////////////////////////// PRIVACY PAGE //////////////////////////
///////////////////////////////////////////////////////////////////
*/

/* 
/////////////////////////////////////////////////////////////////////
////////////////////////// READ BLOG PAGE //////////////////////////
///////////////////////////////////////////////////////////////////
*/

.blog-main-image {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 5px;
}
.blog-title {
  color: var(--main-white);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.blog-description {
  color: var(--gray);
  margin-bottom: 2rem;
  line-height: 1.5;
  font-style: italic;
}

.blog-details {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  color: var(--gray);
  background-color: var(--lighter-main-color);
  padding: 1rem;
  border-radius: 105px;

  /* Desktop */

  @media (min-width: 768px) {
    border-radius: 5px;
  }
}

.blog-details .blog-date {
  font-size: 1rem;
  text-transform: uppercase;
}
.blog-content h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--main-white);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.blog-content p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--main-white);
}

.blog-content .quote {
  display: block;
  font-style: italic;
  color: var(--gray);
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 4px solid var(--main-white);
}
.blog-image {
  width: 100%;
  height: auto;
  margin-block: 1rem;
  border-radius: 5px;
}

.blog-caption {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 2rem;
}

/* 
////////////////////////////////////////////////
////////////////// SOURCES ////////////////////
//////////////////////////////////////////////
*/
.sources-list {
  list-style-type: none;
  padding-left: 0;
  padding-top: 1rem;
}

.source-item {
  margin-bottom: 1rem;
}

.source-item a {
  color: var(--gray);
}
.other-content {
  overflow: hidden;
}

.content-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.content-carousel .blog-card {
  position: relative;
  overflow: hidden;
  display: grid;
  min-width: 320px;
  height: 250px;
  background-color: #f5f5f5;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
