
h1 {

    color: white;
    
    }
    
    a {
    
      
      text-decoration: none;
    
    }
    
    a:link {
      color: #38b3d8;
      text-decoration: none;
    }
    
    /* visited link */
    a:visited {
      color: #38b3d8;
      text-decoration: none;
    }
    
    /* mouse over link */
    a:hover {
      color: rgb(52, 147, 190);
      text-decoration: none;
    }
    
    /* selected link */
    a:active {
      color: #3281a5;
      text-decoration: none;
    }
    
    * {
    
      box-sizing: border-box;
      font-family: sans-serif;
    }
    
    /* Left side menu */
    nav {
      border-right: 1px solid #052d44;
       position: fixed;
        width: 300px;
        top: 0;
        left: 0;
        height: 100%;
        /*float: left;*/
       /*  display: flex;*/
       /*  flex-direction: row;*//* Use flex-direction: row to lay out the flex items in a row */
    
        background-color:#075d96;
    
        display: flex;
        flex-direction: column;
        align-items:center;
        justify-content: center;
        transition: margin-left 0.3s ease;
      }
    
      nav a {
        display: inline-block;
        text-decoration: none;
        padding: 5px 15px;
        font-size: 0.9em;
      font-weight:bold;
      text-emphasis: lowercase;
      letter-spacing: 0.05em;
      }
      nav a:hover {
        color: #49cad3;
      }
    
    
      nav img {
        width: 70%;
        display: block;
        margin-bottom:35px;
      }

 /* Base styling for main */
main {
  margin-left: 300px;
  padding: 10px;
  max-width: 900px;
  background-color: rgb(74, 134, 168);
  transition: margin-left 0.3s ease, padding 0.3s ease;
}
.navimg {
  float:center;
  width:208px;
  height:102px;

}

@media (max-width: 768px) {

  body, html {
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scrolling */
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background-color: #075d96;
    z-index: 1000;
    display: flex;
    flex-direction: row; 
    align-items: center; 

    justify-content: center; /* Center nav content */
    padding: 10px;
  }
  nav h1, nav ul, nav .navimg {
    margin: 0;
    padding: 0; 
  }
 /* Adjust the base font size for the entire body or specific elements. */
 body {
  font-size: 14px; /* Adjust based on your preference */
}

/* Make headings smaller on mobile */
h1, h2, h3, h4, h5, h6 {
  font-size: 1.25em; /* Example to reduce heading sizes; adjust as needed */
  color: #003366; /* Deep blue for headings */
}



  nav h1 {
    font-size: 16px;
    flex-grow: 1; 
    text-align: left;
    padding-left: 10px; 
  }
  nav ul {
    flex-grow: 2; 
    display: flex;
    flex-direction: row; 
    justify-content: center;
    list-style-type: none; 
    padding: 0;
    margin: 0; 
  }
  nav ul li {
    padding: 0 10px; /* Add horizontal padding to each menu item */
  }

  nav a {
    font-size: 14px; /* Adjust link font size for mobile */
  }
  /* Adjust the latest post container specifically if needed */
  .latest-post-container h3 {
    font-size: 18px; /* Adjust the font size for the post title */
  }

  .latest-post-container p {
    font-size: 16px; /* Adjust the font size for the post content */
  }

  /* You might want to adjust padding/margins for layout spacing on mobile */
  .latest-post-container {
    padding: 10px; /* Reduced padding */
  }

  .latest-post-container img {
    max-height: 150px; /* Optionally limit the image height */
  }


  
  .navimg {
    width: 50px; 
    height: auto; 
    margin-right: 10px; 
  }

  main {
    margin-top: 80px; 
    margin-left: 0;
    padding: 15px;
    width: 100%;
    
    margin: 0 auto; /* Centering main content */
    box-sizing: border-box; /* Includes padding in the element's total width */
 
  }

  .container, .row {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-width: none; /* Prevent exceeding the mobile width */
  }
  .col-lg-8 {
    width: 100%; /* Take full width on mobile for .col-lg-8 */
    padding: 0;
    box-sizing: border-box;
  }
  .splash, .success, .portfolio-container-holder {
    padding: 15px;
    box-sizing: border-box;
  }
  .nav-hidden {
    display: none;
  }
 /* Resize images within main content to be more responsive and less dominant on the page */
 main img {
  max-width: 100%; /* Ensures image is not wider than the screen */
  height: auto; /* Keeps the image aspect ratio intact */
}
  .nav-show {
    display: block;
  }

}
.content-text {
  color: #ffffff; /* Change to white for visibility against dark background */
}


    
      .header {
        display: flex;
        align-items: center; 
        width: 400px;
    }
    
    .profile-image {
        width: 50px;
        height: 50px;
        margin-right: 10px; /* Adds some space between the logo and the text */
    }
    
   
    

      footer {
        flex-direction: row;
        width: 200px;/*
        float: left;*/
      }
    
      h2 {
    
    color:rgb(201, 233, 241);
    
    
    
    
      }
      body {
        font-family: sans-serif;
        margin: 0;
        padding: 30px;
        background: url('images/bg2b.png') no-repeat center center;
        background-size: cover;
        font-weight: 100;
    }
    
    .heading {
    
    
        color:rgb(201, 233, 241);
    font-size:22px;
    }
    p {
      color: #333; /* Darker text for readability */
  }
    li {
        color:rgb(201, 233, 241);
    
    }
    
    nav li {
      color:rgb(119, 209, 221);
      list-style: none;
    }
    .permissions { 
      color:rgba(166, 226, 250, 0.3); /*//#c9e8ff*/
    
    
    }
    
    font {
        color:rgb(201, 233, 241);
    }
    label {
        color:rgb(201, 233, 241);
    }
    footer {
        color:rgb(201, 233, 241);
    }

    .latest-post-container {
      margin: 30px auto;
      padding: 20px;
      border: 1px solid #ddd;
      box-shadow: 0 4px 6px rgba(0,0,0,0.1);
      border-radius: 10px;
      max-width: 640px;
      background: linear-gradient(to bottom, #ffffff 0%,#f9f9f9 100%);
      transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  }
  
  .latest-post-container:hover {
    transform: scale(1.03); /* Scales the card slightly */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Adds deeper shadow for depth perception */
  }
  
  .latest-post-container h3 {
      font-size: 24px;
      color: #333;
      margin-bottom: 15px;
  }
  
  .latest-post-container img {
      border-radius: 5px;
      max-width: 100%;
      height: auto;
      display: block;
      margin: 0 auto 20px;
  }
  
  .latest-post-container p {
      font-size: 16px;
      color: #666;
      margin-bottom: 20px;
      line-height: 1.6;
  }
  
  .latest-post-container a {
      font-weight: 600;
      display: inline-block;
      background-color: #007bff;
      color: white;
      padding: 12px 25px;
      text-decoration: none;
      border-radius: 30px;
      transition: background-color 0.2s, transform 0.2s;
  }
  
  .latest-post-container a:hover {
      background-color: #0056b3;
      transform: scale(1.05);
  }
  .portfolio-card-holder {
    padding: 15px;
}

.portfolio-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    max-width: 350px; /* Limit the card width */
    margin: 0 auto; /* Center the card in its column */
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.portfolio-card img {
    width: 100%;
    height: auto;
    border-radius: 5px 5px 0 0;
}

.portfolio-img-desc {
    padding: 15px;
    text-align: center;
}

.portfolio-img-desc p {
    margin: 5px 0;
    color: #333;
}

.portfolio-img-desc p b {
    color: #007bff;
}

.blog-pagination a {
  padding: 5px 10px;
  margin: 5px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #007bff;
}
/* Hover effect for pagination links */
.blog-pagination a:hover {
  background-color: #0056b3; /* Darker blue on hover */
  color: white;
}
/* Highlight the active pagination link more clearly */
.blog-pagination a.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
}
/* Improved pagination link colors for better readability */
.blog-pagination a {
  color: #007bff; /* Brighter color for better readability */
  background-color: #f9f9f9; /* Add background color for contrast */
}
.post-date {
  color: #777;
  font-size: 0.9em;
  margin: 5px 0 15px; /* Adjust spacing around the date */
}
/* Adjusted CSS for blog-portfolio-card to add background and padding */
.blog-portfolio-card {
  background: #f9f9f9; /* Light gray background for each post card */
  border: 1px solid #ddd; /* Add border to distinguish between posts */
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px; /* Add padding inside each post card */
  margin-bottom: 20px; /* Add space between post cards */
  transition: all 0.3s ease;
  max-width:750px;
}
/* Adjusted CSS for blog-portfolio-card */
.blog-portfolio-card h3 {
  color: #003366; /* Deep blue color for the header */
}

.blog-portfolio-card p {
  color: #333; /* Darker text color for better visibility */
}

/* Adjust image size within post cards */
.blog-portfolio-card img {
  max-width: 100%;
  max-height: 400px; /* Increased maximum height */
  object-fit: cover;
  border-radius: 5px; /* Add rounded corners to the image */
}
/* Adjust hover effect to scale the card and change the shadow */
.blog-portfolio-card:hover {
  transform: scale(1.05); /* Slightly larger scale on hover */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}