:root {
  --primary-theme: #001d3d;
  --primary-clr: #3d52a0;
  --secondary-clr: #7091e6;
  --white-clr: #fff;
  --gray-clr: #8697c4;
  --light-gray-clr: #adbbda;
  --light-white-clr: #ede8f5;
  --dark-clr: #00173c;
  --black-clr: #000000;
  --yellow-clr: #f8a501;
  --orange-clr: #ff7c69;
}

a {
  text-decoration: none;
}



.blog_category_wrapper {
  background-color: var(--light-white-clr);
  padding: 20px;
  border-radius: 4px;
}

.blog_category_list {
  list-style: none;
  padding: 0;
}

.blog_category_list .category_item {
  padding: 10px 15px;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px solid #ddd;
  transition: background-color 0.3s ease;
}

.blog_category_list .category_item:hover, 
.blog_category_list .category_item.active {
  background-color: var(--white-clr);
  color: var(--black-clr);
}
/* Blog Category Button */
.blog-category-btn {
  display: none;

  background-color: var(--light-white-clr);
  color: var(--black-clr);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  margin-bottom: 20px;
  border-radius: 4px;
}

#blogSidebar {
  z-index: 9999;
}
.sidebar_visiblity {
  display: none;
}
/* Sidebar close button */
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  color: var;
  width: 100%;
}

.close-sidebar {
  background: none;
  border: none;
  font-size: 30px;
  color: var(--black-clr);
  cursor: pointer;
  padding-bottom: 10px;
}

.blog-category-list {
  list-style: none;
  padding: 0;
  margin: 20px;
}

.blog-category-list li {
  padding: 10px 0;
}

.blog-category-list li a {
  color: #007bff;
  text-decoration: none;
  cursor: pointer;
}


@media (max-width: 431px) {
  .blog-category-btn {
      display: block;
  }
  /* Hide the sidebar initially */
  .blog_category_wrapper {
      position: fixed;
      top: 0;
      right: -250px;
      height: 100%;
      width: 250px;
      background-color: #fff;
      box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
      transition: right 0.3s ease;
      z-index: 999;
  }
  .blog_category_list {
    height: 80%;
    overflow-y: scroll;
  }
  /* When sidebar is open */
  .sidebar_visiblity {
    display: flex;
  }
  .blog_category_wrapper.active {
      right: 0;
  }
}


.all_blogs_wrapper {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  /* white-space: nowrap; */
  /* border: 1px solid green; */
  /* margin-left: 60px; */
}

.blogs_card {
  position: relative;
  border-radius: 10px;
  width: 300px;
  /* margin-right: 20px; */
  
    display: flex;
  flex-direction: column;
  justify-content: space-between;

  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.blogs_card .blog_tag {
  text-decoration: none;
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 12px;
  padding: 4px 20px;
  background-color: var(--dark-clr);
  color: var(--white-clr);
  transition: 0.4s all;
  font-weight: 600;
  border: 1px solid var(--dark-clr);
}
.blogs_card .blog_tag:hover {
  text-decoration: none;
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 12px;
  padding: 4px 20px;
  background-color: var(--white-clr);
  color: var(--dark-clr);
}

.blogs_card .blogs_card_img {
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  width: 100%;
  height: 180px;
}
.blogs_card .blogs_card_content {
  padding: 10px;
}
.blogs_card .title {
  font-weight: 800;
  color: var(--black-clr);
  font-size: 20px;
  margin-bottom: 20px;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%; /* or a specific width */
}
.blogs_card .desc {
  color: #555;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  /* height: calc(3 * 1.2em); */
}

.blogs_card .blogs_card_footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--light-white-clr);
  padding: 10px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.blogs_card .blogs_card_footer span {
  display: flex;
  gap: 4px;
  /* justify-content: space-between; */
  align-items: center;
  color: var(--dark-clr);
}

.blogs_card .blogs_card_footer small {
  font-size: 12px;
}

.all_news_wrapper {
  /* border: 1px solid green; */
}
.marquee_wrapper {
  width: 100%;
  height: 500px;
  overflow: hidden;
  border: 1px solid #ededed;
  border-radius: 4px;
  position: relative;
}

.marquee {
  display: flex;
  flex-direction: column;
  /* position: absolute; */
  animation: scroll 10s linear infinite;
  animation-play-state: running; /* Ensure the animation runs by default */
}
.marquee:hover {
  animation-play-state: paused; /* Pause the animation on hover */
}

.news_item {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}
.news_item .title {
  font-weight: 600;
  font-size: 18px;
  color: #000;
}
.news_item .text {
  font-size: 16px;
  color: #555;
}

@keyframes scroll {
  0% {
      transform: translateY(0);
  }
  100% {
      transform: translateY(-100%);
  }
}

@media (max-width: 425px) {
  .all_blogs_wrapper {
    margin-left: 0px;
  }
  .blogs_card {
    width: 100%;
  }
  .all_news_wrapper {
    padding-top: 50px;
  }
}
@media (min-width: 426px) and (max-width: 768px) {
  .blogs_card .blogs_card_img {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    width: 100%;
    height: 150px;
  }
  .blogs_card {
    width: 230px;
  }
  .blogs_card img {
    height: 150px;
  }
  .news_item .title {
    font-weight: 600;
    font-size: 15px;
    color: #000;
  }
  .news_item .text {
    font-size: 12px;
    color: #555;
  }
}

/* ---------------------------- single blog page -------------------------------- */
.single_blog_title h2 {
  font-weight: 800;
  font-size: 48px;
  text-align: center;
}

.single_blog_page h2 {
  font-weight: 800;
  font-size: 48px;
  /*text-align: center;*/
}

.single_blog_img_div {
  /* border: 1px solid red; */
  display: flex;
  justify-content: center;
  align-items: center;
}
.single_blog_img_div figure {
  width: 100%;
  height: 600px;
}
.single_blog_img_div figure img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}
.single_blog_img_div small {
  font-size: 12px;
  color: #555;
  text-align: center;
}
.single_blog_page .author_details {
  border-bottom: 1px solid #9b9b9b;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;


}
.single_blog_page small .blog_author {
  color: var(--primary-clr);
  font-weight: 600;
}
.single_blog_content p {
  font-family: sans-serif;
  line-height: 1.4;
  font-size: 16px;
}
.single_blog_content a {
  color: black;
  font-size: 16px;
}
.single_blog_content a:hover {
  text-decoration: underline;
  color: #555;
}
.single_blog_content h1 {
  font-family: sans-serif;
  line-height: 1.6;
  font-size: 36px;
}
.single_blog_content h2 {
  font-family: sans-serif;
  line-height: 1.6;
  font-size: 30px;
}
.single_blog_content h3 {
  font-family: sans-serif;
  line-height: 1.6;
  font-size: 24px;
}
.single_blog_content h4 {
  font-family: sans-serif;
  line-height: 1.6;
  font-size: 20px;
}
.single_blog_content h5 {
  font-family: sans-serif;
  line-height: 1.6;
  font-size: 18px;
}
.single_blog_content h6 {
  font-family: sans-serif;
  line-height: 1.6;
  font-size: 16px;
}
.single_blog_content ul li {
  font-family: sans-serif;
  list-style: disc;
  line-height: 1.4;
  font-size: 16px;
}
.single_blog_content ol li {
  font-family: sans-serif;
  list-style: disc;
  line-height: 1.4;
  font-size: 16px;
}

/* ------------------------------- comments_section ------------------------------------ */
/* .comments_section {
  margin-top: 50px;
}
.comments_list .comment {
  padding-left: 20px;
}
.comments_list .comment h5 {
  border: 1px solid red;
  font-weight: 800;
}
.comments_list .comment p {
  border: 1px solid red;
  color: #555;
}

.comments_section form {
  padding-left: 20px;
}
.comments_section form label {
  width: 100%;
  font-weight: 500;
  font-size: 15px;
  display: block;
  margin-bottom: 4px;
}
.comments_section form input {
  width: 100%;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  outline: none;
  display: block;
  padding: 10px;
  margin-bottom: 20px;
}
.comments_section form input::placeholder {
  font-size: 14px;
}
.comments_section form textarea {
  width: 100%;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  outline: none;
  display: block;
  padding: 10px;
}
.comments_section form textarea::placeholder {
  font-size: 14px;
}


.comments_section form button {
  border: 1px solid var(--dark-clr);
  background-color: var(--dark-clr);
  color: var(--white-clr);
  border: none;
  outline: none;
  border-radius: 4px;
  padding: 10px;
  font-weight: 600;
  transition: 0.4s all ease-in-out;
  margin-top: 20px;
}

.comments_section form button:hover {
  border: 1px solid var(--dark-clr);
  background-color: var(--white-clr);
  color: var(--dark-clr);
} */

@media (max-width: 425px) {
  .single_blog_title h2 {
    font-weight: 700;
    font-size: 24px;
  }
  .single_blog_img_div figure {
    height: 250px;
  }
  .single_blog_page h2 {
    font-weight: 700;
    font-size: 24px;
    /*text-align: center;*/
  }
}

@media (min-width: 426px) and (max-width: 768px) {
  .single_blog_title h2 {
    font-weight: 700;
    font-size: 24px;
  }
  .single_blog_img_div figure {
    height: 350px;
  }
  .single_blog_page h2 {
    font-weight: 700;
    font-size: 36px;
    /*text-align: center;*/
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .single_blog_img_div figure {
    height: 450px;
  }
  .single_blog_title h2 {
    font-weight: 700;
    font-size: 24px;
  }
  .single_blog_page h2 {
    font-weight: 700;
    font-size: 42px;
    /*text-align: center;*/
  }
}
