/* Body Styles */
body {
  padding: 0 !important;
  margin: 0 !important;
  /* font-family: Arial, Helvetica, sans-serif; */
  font-family: 'Roboto', Helvetica, sans-serif;
  font-size: 1.02rem;
  max-width: 100vw !important;
}

.title {
  font-family: 'Manrope', sans-serif;
}

/* Top-Most Bar Styles */
.horizontal-bar {
  color: #fff;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  /* max-width: 1400px; */
  max-width: 100%;
  margin: auto;
}

.topmost-bar {
  color: #080808 !important;
  padding: 20px !important;
}

.logo {
  font-size: 48px;
  font-weight: bold;
}

/* Links */
a {
  text-decoration: none;
  color: #3a9241;
}
a:hover {
  color: #f8431a;
}

/* Top Bar Styles */
.categories {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100% !important;
}

.categories a,
footer a {
  font-size: 1.04rem;
  padding: 0 10px;
  color: #fff;
  text-decoration: none;
}

.categories a:hover,
footer a:hover {
  color: #f8c1b4;
}

/* Category Bar - Post Sub-Niches*/
.niches-bar {
  width: 100%;
  height: 40px !important;
  display: flex;
  margin: 35px 1px 15px;
  background-color: #edfcee;
  justify-content: space-between;
  align-items: center;
}

.niches-bar-title {
  color: #fff;
  font-weight: 500 !important;
  font-size: 1.04rem;
  padding: 10px 25px 8px 20px;
  background-color: #3a9241;
  min-width: 150px;
}

.niches-bar a {
  color: #f03005;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 3px 10px;
  margin-right: 10px;
  background-color: #b0e9b9;
  /* border: 1px solid #3a9241; */
  /* border: 1px solid #f7451e; */
  border-radius: 4px;
  transition: 0.2s ease-in-out;
}

.niches-bar a:hover {
  background-color: #d4f5d9;
}

/* Button */
.load-more-button {
  text-decoration: none;
  color: #fff;
  background-color: #3a9241;
  border: solid;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 1.04rem;
  cursor: pointer;

  transition: background-color 0.3s;
}

.load-more-button:hover {
  background-color: #1b5e20;
}

/* style.css */
.news-template {
  max-width: 1400px;
  margin: auto;
  padding: 30px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: left; /*center*/
  min-height: calc(100vh - 200px);
}

.post-cards-container {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* flex-start */
  row-gap: 17px !important;
  column-gap: 1.5% !important;
  padding-bottom: 1.5% !important;
}

.post-cards {
  width:100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  row-gap: 17px !important;
  column-gap: 1.5% !important;
}

.post-card {
  display: flex;
  align-items: center;
  padding: 5px 10px 5px 5px;

  /* Adding a shadow with spread radius */
  box-shadow: 4px 4px 10px 5px rgba(48, 48, 48, 0.1); /* Horizontal, Vertical, Blur, Spread, Color */

  /* Adding border radius for rounded corners */
  border-radius: 10px;
}

.post-card a {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none; /* Optional: Remove the default link underline */
  color: #080808;
  gap: 15px;
}

.featured-post-card,
.featured-post-card a {
  display: flex;
  flex-wrap: wrap;
  /* justify-content: center; */
  flex-direction: column;
  /* align-items: center; */
  padding: 0px !important;
}

.featured-post-card a .post-card-text{
  padding: 0px 20px 7px !important;
}

.post-card img {
  width: 85px;
  height: 85px;
  border-radius: 10px;
  transition: filter 0.3s ease; /* Smooth transition for image filter */
}

.featured-post-card img {
  width: 100%;
  height: auto;
  min-height: 330px;
  margin-right: 0px !important;
  border-radius: 10px 10px 0px 0px;
  transition: filter 0.3s ease; /* Smooth transition for image filter */
}

/*== Applies to 404 Page */
.post-card-404 {
  justify-content: center;
}

.post-card-404 img {
  width: 100%;
  height: auto;
  margin: 0;
}
/* ==== */

.post-card-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 68px; /* or any specific height */
  padding-right: 5px;
}

.post-card-title {
  font-size: 1.05rem;
  margin: 0;
  transition: color 0.3s ease; /* Optional: smooth transition */

  display: -webkit-box;
  -webkit-line-clamp: 3; /* Maximum of 3 lines*/
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Change color on hover */
.post-card:hover .post-card-title {
  color: #f7451e; /* Replace with your desired color - #ff5733*/
}

.post-card-snippet {
  font-size: 0.95rem;
  margin-top: 11px;

  display: -webkit-box;
  -webkit-line-clamp: 2; /* Maximum of 2 lines*/
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-card:hover img {
  filter: grayscale(100%); /* Grayscale the image */
}

/* Medium screen and up */
@media (min-width: 768px) {
  .col-large,
  .col-small {
    flex: 0 0 100%;
    /* Occupy 1-of-2 of the width */
  }

  .post-card {
    flex: 1 0 35%;
    /* 2 columns = i.e 50% width each */
  }

  .col-1,
  .col-2,
  .col-3 {
    flex: 1 0 35%;
    /* 2 columns = i.e 50% width each */
  }

  .col-1 .post-card,
  .col-2 .post-card {
    flex: 1 0 55%;
    /* 1 column = i.e 100% width each */
  }

  .col-large .post-card,
  .col-small .post-card,
  .col-3 .post-card {
    flex: 1 0 35%;
    /* 2 columns = i.e 50% width each */
  }
}

/* Large screen and up */
@media (min-width: 1200px) {
  .col-large {
    flex: 0 0 66%; /* 65%*/
    /* Occupy 2-of-3 of the width */
  }

  .col-small {
    flex: 0 0 32.3%;
    /* Occupy 1-of-3 of the width */
  }

  .col-1,
  .col-2,
  .col-3 {
    flex: 1 0 27%;
    /* 3 columns = i.e 33.33% width each */
  }

  .col-1 .post-card,
  .col-2 .post-card,
  .col-3 .post-card {
    flex: 1 0 55%;
    /* 1 column = i.e 100% width each */
  }

  .col-large .post-card {
    flex: 1 0 35%;
    /* 2 columns = i.e 50% width each */
  }

  .col-small .post-card {
    flex: 1 0 55%;
    /* 1 column = i.e 100% width each */
  }
}

/* Small screen and up */
@media (max-width: 768px) {
  .post-card {
    flex: 1 0 55%;
    /* 1 column = i.e 100% width each */
  }

  .col-1,
  .col-2,
  .col-3 {
    flex: 1 0 55%;
    /* 1 column = i.e 100% width each */
  }
}

/* Smaller screen*/
@media (max-width: 350px) {
  .post-card {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  /* .post-card img {
    margin: 10px;
  } */
}

/* Prevents text from breaking to the next line */
.nowrap {
  white-space: nowrap; /* Prevents text from breaking to the next line */
  overflow: hidden; /* Hides any overflowing text if the container is too small */
  text-overflow: ellipsis; /* Adds ellipsis (...) if the text overflows */
}

/* === PAGE TITLE ==== */
.page-title-section {
  margin-top: -30px;
  width: 100%;
}

.page-title {
  position: relative;
  padding-bottom: 5px;
  color: #616060;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #cacaca;
}
/* ===== */

/* == Place the 'Load More' button at the center == */
.news-template #load-more-button-section {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center !important; /* Horizontally center */
  align-items: center; /* Vertically center */
  margin-top: 55px;
}

#load-more {
  display: inline-block; /* Ensure it's inline */
  width: auto; /* Allow it to adjust based on content */
  align-self: center;
}
/* ===== */

/* ===== For Collapsible Menu ==== */

/* Hamburger button */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle div {
  width: 25px;
  height: 3px;
  background-color: #3a9241;
}

.menu-left {
  display: flex;
  align-items: center;
}

.menu-right {
  display: flex;
  align-items: center;
}

/* Sidebar styles */
.sidebar {
  position: fixed;
  top: 0;
  left: -250px; /* Hidden initially */
  width: 250px;
  height: 100%;
  background-color: #3a9241;
  overflow-x: hidden;
  transition: left 0.3s ease;
  z-index: 1000;
  padding-top: 20px;
}

.sidebar a {
  display: block;
  padding: 15px;
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
}

.sidebar a:hover {
  background-color: #317835;
}

/* Overlay background */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 900;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  /* Hide top bar links, show hamburger */
  .horibar {
    padding: 5px !important;
  }

  .categories {
    display: none !important;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (min-width: 768px) {
  #sidebar {
    left: -250px !important;
  }

  #overlay {
    display: none !important;
  }
}

/* ============== */
/* ============== SCROLL TO TOP === STARTS ==== */
/* Scroll to Top Button Styles */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #53b862, #286b2b);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
} 

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #3a9241, #1b5e20);
}

.scroll-to-top:active {
  transform: translateY(-2px) scale(1.05);
}

/* Arrow icon */
/*
.scroll-to-top::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 18px solid white;
  margin-bottom: 2px;
}
*/

/* Responsive design */
@media (max-width: 768px) {
  .scroll-to-top {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .scroll-to-top::before {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 10px solid white;
  }
}
/* ============== SCROLL TO TOP === ENDS ==== */
/* ============== */
