
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  

  .sidebar {
    height: 100vh;
    width: 15%; 
    background-color: #f8990a; 
    position: fixed;
    top: 0;
    left: 0;
    font-size: x-large;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    line-height: 70px;
    padding: 10px;
  }
  
  .sidebar .sidebar-content ul {
    list-style-type: none;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  .sidebar .sidebar-content ul li a {
    color: white;
    text-decoration: none;
    border-radius: 5px;
    padding: 30px;
    
  }
  
  .sidebar .sidebar-content ul li:hover {
    background-color: #121111;
    border-radius: 20px;
    text-align: center;
  }
  

  body{
    background-color: rgb(250, 250, 185);
    position: relative; left: 1%;
    overflow-x: hidden;
    margin: 17%;
  }


  .firstline{
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: 50px;
    position: relative; top: 100px;
    
}

.secondline {
    font-size: 40px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    position: relative; top: 130px;

}


.blogs { 
    
    width: 1000px; 
    height: 220px;
    margin: 10px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative; right: 30px; top: 100vh;
}

.blogs:hover{
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

ul{
    list-style-type: none;
}

.blogtext
{
    position: relative; bottom: 170px; left: 190px;
    font-size: xx-large;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.content {
    font-size: large;
    line-height: 20px;
    position: relative; left: 190px; bottom: 160px;
    width: 650px; 
}

.blog-image {
    height: 150px;
    width: 150px;
    position: relative;
    top: 20px;
    left: 10px;
  }

  .readmore {
    position: relative;
    bottom: 160px;
    left: 850px;
    font-size: large; 
  }
  

  .writers {
    text-align: center;
    position: relative; top: 700px;
    width: 1000px;
  }
  
  .writers h2{
    text-align: justify; 
    padding: 10px;
    font-size: 50px;
    
  }
  
  .writers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .writer {
    background-color: #f7f7f7;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    width: 300px;
    height: 250px;
  }

  .writer:hover{
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
  
  .writer h5 {
    font-size: 20px;
    padding: 10px;
    text-align: center;
    position: relative; top: 30px;
  }

  .writer-image {
    height: 120px;
    width: 220px;
    position: relative;
    left: 5px;
    top: 30px;
}


.topics {
    text-align: center;
    position: relative; top: 700px;
    width: 10px;
  }
  
  .topics h2{
    text-align: center; 
    padding: 30px;
    font-size: 50px;
    position: relative; top: 70px;
    
  }
  
  .topics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .topic {
    background-color: #f7f7f7;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); 
    width: 300px;
    height: 250px;
    padding: 20px;
    position: relative; top: 60px;
  }

  .topic:hover{
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}
  
  .topic h5 {
    font-size: 20px;
    padding: 10px;
    text-align: center;
    position: relative; top: 30px;
  }

  .topic-image {
    height: 120px;
    width: 220px;
    position: relative;
    left: 5px;
    top: 30px;
}

  

  
  @media screen and (max-width: 740px) {
    .sidebar {
      width: 70%; 
      transform: translateX(-100%); 
      transition: transform 0.3s ease; 
      z-index: 1000; 
    }
  
   
    .hamburger {
      display: block; 
      position: fixed;
      top: 20px;
      left: 70%;
      font-size: 2rem;
      background-color: #f8990a;
      padding: 10px;
      border-radius: 5px;
      cursor: pointer;
      z-index: 1001; 
    }
  

    .overlay {
      display: none; 
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5); 
      z-index: 900; 
      transition: opacity 0.3s ease; 
    }
  
    #hamburger-toggle:checked ~ .sidebar {
      transform: translateX(0); 
        }
  
    #hamburger-toggle:checked ~ .overlay {
      display: block;
    }
  
    .body {
      overflow-x: hidden;
      height: 1000vh;
      width: 50vh;

    }
    
    .blogs { 
    
        max-width: 100%; 
        height: 340%;
        margin: 10px;
        background-color: #f9f9f9;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        position: relative; right: 30px; top: 100vh;
    }
    
    ul{
        list-style-type: none;
    }
    
    .blogtext
    {
        position: relative; bottom: 150px; left: 20px;
        font-size: xx-large;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    }
    
    .content {
        font-size: large;
        line-height: 20px;
        position: relative; left: 20px; top: 30px;
        width: 80%;

    }

    .blog-image {
        height: 150px;
        width: 200px;
        position: relative;
        top: 60px;
        left: 10px;
      }

      .readmore {
        position: relative;
        top: 10px;
        left: 200px;
        font-size: large; 
      }

      .blogs {
        width: 90%;
        height: auto;
        padding: 15px;
        font-size: 16px;
      }

      .writers{
        position: relative; top: 800px;
      }
      
      .writers-grid {
        grid-template-columns: repeat(minmax(1, 1fr));
        gap: 1rem;
      }
      
      .writer {
        width: 60%; 
      }

      .topics-grid {
        grid-template-columns: repeat(minmax(1, 1fr));
        gap: 1rem;
        padding: 20px;
      }
      
      .topic {
        width: 60%; 
      }  
     
  }