
/* Header styles */
header {
  background-color: #333;
  text-align: center;
  padding: 0;
  position: relative; 
  top: 0;
  left: 0;
  min-width: 100%; 
  z-index: 998;
}

header h1 {
  font-size: 35px;
  /* padding: 1rem; */
  color: #fff;
  font-weight: bold;
}

@media (max-width: 768px) {
  header h1 {
    margin-top: 7px;
    margin-left: 50px;
    font-size: 2rem;
    /* padding: 1rem; */
    color: #fff;
    font-weight: bold;
  }
}

/* Navigation styles via global nav css*/


/* Body styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
}


.blog-container {
    max-width: 75%;
    margin: 0 auto;
    margin-top: 135px;
    margin-bottom: 30px;
    padding-top: 0;
    padding: 40px 0 40px 40px;
    background-color: #e9e9e9;
    display: grid;
    grid-template-columns: 70% 27%; /* 80% and 20% split */
    grid-gap: 20px; 
  }

  .blog-content-wrapper {
    display: contents; /* This makes sure the content-wrapper does not interfere with the grid layout */
  }


  .blog-container .left-column {
    grid-column: 1;
    padding-right: 50px;
  }

  .blog-container .left-column h1 {
    color: #000;
    font-size: 2.4em;
    margin-top: 0;
}

.blog-container .left-column h2 {
    font-size: 1.8em;
    margin-top: 0px;
    margin-bottom: 15px;
    border-top: 2px solid #aaa; 
    padding-top: 15px; 
    padding-bottom: 5px;
}

.blog-container .left-column p {
    margin-bottom: 15px;
}


.blog-container .left-column img {
    height: 290px;
    width: auto;
}

#blog-posts article + article {
  margin-top: 80px;
}

.blog-container .left-column > *:first-child h2 {
  border-top: none;
}



.read-more {
  background-color: darkblue;
  color: white;
  padding: 8px 10px;
  text-decoration: none;
  font-size: 16px;
  float: right;
  border-radius: 5px;
  margin-right: 40px;
}

.read-more:hover {
  background-color: darkblue;
  text-decoration: underline;
  text-underline-offset: 1px;

}


/* right column styling ------------------------------------ */
  .blog-container .right-column {
    grid-column: 2;
    background-color: #cccccc; 
    height: 600px;
    width: 280px;
  }

  .right-column h3{
    padding-bottom: 5px;
    border-bottom: 2px solid #fff;
    font-size: 1.6em;
    margin-top: 15px; 
    margin-left: 10px;
   }
 
   .right-column ul{
     list-style-type: none;
     padding-left: 0; 
     margin-left: 15px; 
   }
 
  .right-column li{
    color: #000000;
     padding: 10px;
     /* font-size: 1em; */
     border-bottom: 1px solid #eee;
   }
 
  .right-column li:hover{
    background-color: #555;
    color: #fff;
    cursor: pointer;
    text-decoration: underline;
   }
 
  
  
/* Media Query for Mobile Devices */
@media (max-width: 768px) {
    .blog-container {
      grid-template-columns: 1fr; /* Single column layout for full body */
      grid-template-rows: auto auto; /* Stack rows */
      justify-content: center;
      max-width: 100%;
      margin-top: 60px;
      padding: 20px;
    }
  
    .blog-container .left-column{
      grid-column: 1 / -1; /* Make both columns span full width */
      margin-bottom: 20px; /* Add some space between sections */
      padding: 0 10px;
      width: 100%;
    }

   .blog-container .left-column img {
        height: 180px; 
        width: auto;
        /* object-fit: cover;
        object-position: center; */
    }

   .blog-container .left-column h2 {
        font-size: 30px;
    }
   .blog-container .left-column p {
      padding-right: 20px;
    }

    .full-article {
      padding: 15px 10px;
      margin: 10px 0;
      /* background-color: #ffffff; */
      border-radius: 8px;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
  
    .full-article h2 {
      font-size: 24px;
      color: #333;
      margin-bottom: 15px;
      line-height: 1.3;
    }
  
    .full-article div {
      font-size: 16px;
      line-height: 1.6;
      color: #444;
    }
  
    .full-article img {
      max-width: 100%;
      height: auto;
      margin: 10px 0;
      border-radius: 6px;
    }

    .read-more {
      margin-right: 30px;
    }

    .blog-container .right-column {
      grid-column: 1 / -1; /* Make both columns span full width */
      margin-bottom: 20px; /* Add some space between sections */
      /* padding: 0 0px; */
      width: 100%;
    }

  }

  



/* Footer styles via global footer css */