: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;*/
  }
}

.single_blog_container {
  display: flex;
  gap: 30px;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
}

#tables {
  flex: 0 0 280px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  height: fit-content;
  transition: all 0.3s ease;
  position: sticky;
  top: 120px;
  align-self: flex-start;
}

#tables h3 {
  color: #1e293b;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
  font-size: 1.2rem;
}

#tables a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #475569;
  margin-bottom: 8px;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  border-left: 3px solid transparent;
}

#tables a:hover {
  background-color: #f1f5f9;
  color: #3b82f6;
  transform: translateX(3px);
}

#tables a.active {
  background-color: #eff6ff;
  color: #3b82f6;
  border-left-color: #3b82f6;
  font-weight: 700;
}

.blog_content__main {
  flex: 1;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 40px;
  min-height: 2000px; /* For demo purposes */
}

.single_blog_content h1 {
  color: #0f172a;
  margin-bottom: 30px;
  font-size: 2.5rem;
  line-height: 1.2;
}

.single_blog_content h2 {
  color: #1e293b;
  margin: 40px 0 20px;
  font-size: 1.8rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}

.single_blog_content h3 {
  color: #334155;
  margin: 30px 0 15px;
  font-size: 1.4rem;
  padding-top: 60px; /* Space for sticky header offset */
  margin-top: -40px; /* Compensate for padding */
  scroll-margin-top: 20vh;
}

.single_blog_content p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #475569;
}

.single_blog_content .blog-section {
  margin-bottom: 50px;
}

/* Responsive design */
@media (max-width: 1024px) {
  .single_blog_container {
    flex-direction: column;
  }

  #tables {
    flex: 1;
    width: 100%;
    position: static;
    top: auto;
  }

  .single_blog_content h3 {
    padding-top: 40px;
    margin-top: -20px;
    scroll-margin-top: 20vh;
  }
}

@media (max-width: 768px) {
 
  .blog_content__main {
    padding: 20px;
  }

  #tables {
    padding: 20px;
  }

  .single_blog_content h1 {
    font-size: 2rem;
  }
}

/* Scroll indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  transform-origin: 0%;
  z-index: 1000;
}

/* Status indicator */
.sticky-status {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #10b981;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.sticky-status.visible {
  opacity: 1;
}

@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;*/
  }
}
