@import url("https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100;8..144,300;8..144,400&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Quintessential&family=Roboto+Flex:opsz,wght@8..144,100;8..144,300;8..144,400&display=swap");

/* Reset CSS */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body styles */
body {
  background-color: #f6f5f1;
  height: 100vh;
  font-family: "Roboto Flex", sans-serif;
  font-weight: 600;
  font-size: 14px;
}

/* Anchor styles */
a {
  text-decoration: none;
}

/* Header styles */
header {
  justify-content: space-between;
  padding: 30px 70px;
  display: flex;
  align-items: center;
  padding: 20px;
}

.logo {
  cursor: pointer;
  width: 250px;
  max-width: 100%;
}

/* Navigation styles */
.navBar {
  list-style: none;
  display: flex;
  margin-top: -20px;
}

.navBar li {
  display: inline-block;
  padding: 0 10px;
  font-family: "Roboto Flex", sans-serif;
  text-transform: uppercase;
  font-weight: 300;
  margin-right: 20px;
}

.navBar li a {
  transition: 0.3s;
  color: black;
}

.navBar li a:hover {
  color: #2a3512;
  opacity: 30%;
}

.container {
  display: flex;
  width: 90%;
  margin: auto;
}

/* Styles for GitHub icon */
#github {
  height: 50px;
}

/* Styles for footer */
footer {
  bottom: 10px;
  width: 100%;
}
/* Styles for social icons */
.socials {
  font-size: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fa-brands {
  margin-right: 20px;
  color: black;
}

/* Styles for toggle menu */
.toggle-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 20px;
  right: 20px;
}

.toggle-menu span {
  background: #000;
  height: 3px;
  width: 25px;
  margin: 5px;
  display: block;
}

.toggle-menu.active span:nth-child(1) {
  transform: rotate(-135deg) translate(-5px, -6px);
}

.toggle-menu.active span:nth-child(2) {
  opacity: 0;
}

.toggle-menu.active span:nth-child(3) {
  transform: rotate(135deg) translate(-5px, 6px);
}

/* Media query for smaller screens */
@media only screen and (max-width: 1087px) {
  /* Adjust font size for smaller screens */
  body {
    font-size: 12px;
  }

  /* Adjust header layout for smaller screens */
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Display navigation menu vertically on smaller screens */
  .navBar {
    display: none;
    flex-direction: column;
    width: 70%;
    height: 70%;
    position: absolute;
    top: 40px;
    background-color: rgba(185, 187, 174, 0.9);
    z-index: 1;
    margin-top: 20px;
    gap: 10%;
    right: 20px;
    padding: 15px 0px;
    border-radius: 5px;
  }
  /* Display navigation menu when active */
  .navBar.show {
    display: flex;
  }

  /* Align navigation items to right */
  .navBar li {
    text-align: right;
    margin: 0;
    color: white;
    font-weight: 900;
  }
  /* Display toggle menu */
  .toggle-menu {
    display: flex;
  }
}
.title h1 {
  color: #b9bbae;
  text-decoration: underline;
  text-align: center;
}

/* ===========================Blog======================== */
.gridContainer {
  display: flex;
  width: 90%;
  margin: 0 auto;
  gap: 40px;
  padding-top: 40px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.blogPost {
  width: calc(50% - 20px);
  background: white;
  box-shadow: 10px -3px 15px grey;
  margin-bottom: 20px;
}

.blogPost:hover {
  box-shadow: 5px 10px 10px #06586d;
}
.blogContents p {
  text-align: left;
  margin-left: 10px;
}
.blogCategory {
  color: green;
  margin: 5px 0;
  font-size: 12px;
}
.blogTitle {
  color: black;
  margin-top: 5px;
  font-size: 18px;
}
.blogAuthor {
  color: black;
  margin-top: 5px;
  font-size: 12px;
  padding-bottom: 10px;
}

.blogImage img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

/* ----------------------The loader--------------------- */
/* Loader overlay */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Loader */
.loader {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 10px;
}

.loader div {
  width: 8%;
  height: 24%;
  background: rgb(128, 128, 128);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  border-radius: 50px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
  animation: fade458 1s linear infinite;
}

@keyframes fade458 {
  from {
    opacity: 1;
  }
  to {
    opacity: 0.25;
  }
}

.loader .bar1 {
  transform: rotate(0deg) translate(0, -130%);
  animation-delay: 0s;
}

.loader .bar2 {
  transform: rotate(30deg) translate(0, -130%);
  animation-delay: -1.1s;
}

.loader .bar3 {
  transform: rotate(60deg) translate(0, -130%);
  animation-delay: -1s;
}

.loader .bar4 {
  transform: rotate(90deg) translate(0, -130%);
  animation-delay: -0.9s;
}

.loader .bar5 {
  transform: rotate(120deg) translate(0, -130%);
  animation-delay: -0.8s;
}

.loader .bar6 {
  transform: rotate(150deg) translate(0, -130%);
  animation-delay: -0.7s;
}

.loader .bar7 {
  transform: rotate(180deg) translate(0, -130%);
  animation-delay: -0.6s;
}

.loader .bar8 {
  transform: rotate(210deg) translate(0, -130%);
  animation-delay: -0.5s;
}

.loader .bar9 {
  transform: rotate(240deg) translate(0, -130%);
  animation-delay: -0.4s;
}

.loader .bar10 {
  transform: rotate(270deg) translate(0, -130%);
  animation-delay: -0.3s;
}

.loader .bar11 {
  transform: rotate(300deg) translate(0, -130%);
  animation-delay: -0.2s;
}

.loader .bar12 {
  transform: rotate(330deg) translate(0, -130%);
  animation-delay: -0.1s;
}
/* ------------------------Blogs page responsiveness------------------ */
@media only screen and (max-width: 807px) {
  .blogPost {
    width: calc(100% - 20px);
    margin: 0 auto;
    background: white;
    box-shadow: 10px -3px 15px grey;
    margin-bottom: 20px;
  }
}

/* =========================Single Blog=============================== */
.viewBlogContents {
  margin-left: 5%;
  padding-top: 40px;
}
.viewBlogContents p {
  text-align: left;
}
.blogImageSingle img {
  height: 70%;
  width: 70%;
  object-fit: cover;
  object-position: center;
}

.blogCategorySingle {
  color: green;
}
.blogAuthorSingle {
  padding: 3px 0px;
}
.blogContentSingle {
  width: 70%;
  padding: 20px 0px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-weight: 400;
}

/* ---------------------------------- */
.blogComments {
  margin-top: 40px;
  padding: 5px;
  border-radius: 3px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  width: 50%;
  margin-left: 5%;
}

#blogIntro {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

#commentorName,
#blogComment {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: ;
  font-size: 16px;
}

#blogComment {
  min-height: 120px;
  resize: vertical;
}

#commentButton {
  width: 200px;
  padding: 10px;
  background-color: #b9bbae;
  color: black;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

#commentButton:hover {
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* ------------------------------------------- */

.comment-table {
  width: 70%;
  margin-left: 5%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

#displayBlogComment p {
  padding: 20px 0px;
  text-decoration: underline;
  /* margin-left: 300px; */
  margin: 0 auto;
}
#blogIntro {
  width: 60%;
  padding: 12px 20px;
  display: inline-block;
}
td {
  border-bottom: 1px solid #abd5f7;
}

.comment-table td {
  vertical-align: top;
  text-align: left;
  padding-bottom: 20px;
  padding-right: 20px;
}

@media only screen and (max-width: 1022px) {
  .blogComments {
    margin-top: 40px;
    padding: 5px;
    border-radius: 3px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    width: 90%;
  }
}

/* ==================News-letter======================== */

.newsNews {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.leftSide {
  text-align: center;
  margin-bottom: 20px;
}

.rightSide {
  text-align: center;
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

input[type="email"] {
  width: 250px;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

input[type="submit"] {
  width: 200px;
  padding: 10px;
  background-color: #b9bbae;
  color: black;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

input[type="submit"]:hover {
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

p {
  text-align: center;
  font-size: 14px;
  color: #666;
}

/* ==================BLOG PAGES======================== */

.blogColumns {
  display: grid;
  width: 100%;
  height: 100vh;
}
.bColumn {
  /* border: 3px solid red; */
  height: 100vh;
}
.bCol1 {
  margin: 0 65px;
  height: 80vh;
  color: black;
}
.bCol1 h1 {
  color: #09c372;
  text-align: center;
  font-size: 50px;
}
.bCol1 img {
  height: 80 vh;
  width: 100 vh;
}

.bCol2 {
  margin: 0 600px 0 65px;
  font-size: 20px;
}
