:root {
    --Yellow: hsl(47, 88%, 63%);
    --White: hsl(0, 0%, 100%);
    --Gray500: hsl(0, 0%, 42%);
    --Gray950: hsl(0, 0%, 7%);
  }
  
  /* Reset */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  @font-face {
    font-family: 'Figtree';
    src: url('./assets/fonts/Figtree-VariableFont_wght.ttf') format('truetype'), 
    url('./assets/fonts/Figtree-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 500 800;
    font-style: normal;
  }
  
  html, body {
    height: 100%;
    max-width: 1440px;
    min-width: 375px;
    font-family: 'Figtree', sans-serif;
  }

  /* Body Styling */
  body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--Yellow);
    font-size: 16px;
  }

  .blog-container img {
    border-radius: 10px;
    width: 100%;
  }

  .blog-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--White);
    width: 100%;
    max-width: 23.5rem;
    padding: 1.2em;
    margin: 1rem;
    border-radius: 15px;
    border: 1px solid var(--Gray950);
    box-shadow: 0.55rem 0.55rem 0 rgba(0, 0, 0, 1);
    line-height: 1.5rem;
  }

  .blog-container .title {
    background-color: var(--Yellow);
    color: var(--Gray950);
    margin: 1.2rem 0 0.7rem 0;
    padding: 0.3rem 0.7rem;
    border-radius: 0.3rem;
    font-size: 1rem;
    font-family: 'Figtree', sans-serif;
    font-weight: 800;
  }

  .blog-container .date {
    color: var(--Gray950);
    font-size: 0.87rem;
    font-weight: bold;
  }

  .header {
    margin: 1rem 0;
    font-family: 'Figtree', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .header:hover {
    color: var(--Yellow);
    transition: color 0.3s ease;
  }

  .blog-container p {
    color: var(--Gray500);
    font-family: 'Figtree', sans-serif;
    font-weight: 500;
  }

  .author-section img {
    width: 18%;
  }

  .author-section {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 1.1rem 0 0.3rem 0; 
  }

.author-section h2 {
    font-size: 0.9rem;
    font-family: 'Figtree', sans-serif;
    font-weight: 800;
}

@media (max-width: 375px) {
  .blog-container {
    max-width: 20rem;
    width: 80%;
  }
}

@media (max-width: 1024px) {
  .blog-container {
    max-width: 23rem;
    width: 90%;
  }
}