:root {
  --bs-font-sans-serif: 'Roboto', sans-serif;
  --bs-primary: #008000;
  --bs-secondary: #c81044;
  --font-size: 16px;
  --zorbis-green: #28a745;
  --dark-gray: #2d2d2d;
  --light-gray: #f8f8f8;
}

body {
  background-color: #f0f2f5;
  margin: 0;
  padding-top: 90px;
}

/* Make sure logo text and image use primary color */
.navbar-brand {
  color: var(--bs-primary) !important;
  /* Bootstrap primary color */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: xx-large;
  font-weight: 800;
}

.navbar-brand img {
  /* This filter tints the image to a blue primary color, adjust if your primary color differs */
  width: 40px;
  /* Adjust size as needed */
  height: auto;
}

/* The button already uses btn-primary, but let's add a bit more emphasis */
.navbar-nav .btn-primary {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  transition: background-color 0.3s ease;
}

.navbar-nav .btn-primary:hover {
  background-color: #025202;
  /* fallback darker shade */
  border-color: #025202;
}

/* Navbar nav links hover effect: text changes to primary color */
.navbar-nav .nav-link:hover {
  color: var(--bs-primary) !important;
  transition: color 0.3s ease;
}

/* Optional: active nav link also stays primary */
.navbar-nav .nav-link.active {
  color: var(--bs-primary) !important;
}


.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

/*Nav bar color changes to black on phone*/
.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='black' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}


#featured-heading-color {
  color: var(--bs-secondary)
}


/* Remove the underline from the category links */
.nav-scroller .nav a {
  text-decoration: none;
  /* Remove underline */
  position: relative;
  /* Required for the pseudo-element */
  color: var(--bs-primary);
  font-weight: 600;
}

/* Add a pseudo-element for the underline effect */
.nav-scroller .nav a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  /* Same color as the text */
  bottom: 0;
  left: 0;
  transform: scaleX(0);
  /* Start with the underline hidden */
  transform-origin: center;
  /* Start the animation from the center */
  transition: transform 0.5s ease;
  /* Animation with 1 second transition */
}

/* Hover effect to show the underline starting from the center */
.nav-scroller .nav a:hover::after {
  transform: scaleX(1);
  /* Full width on hover */
}


/* For other boilerplate styles, see: https://www.tiny.cloud/docs/tinymce/7/editor-content-css/ */
/*
* For rendering images inserted using the image plugin.
* Includes image captions using the HTML5 figure element.
*/

figure.image {
  display: inline-block;
  border: 1px solid gray;
  margin: 0 2px 0 1px;
  background: #f5f2f0;
}

figure.align-left {
  float: left;
}

figure.align-right {
  float: right;
}

figure.image img {
  margin: 8px 8px 0 8px;
}

figure.image figcaption {
  margin: 6px 8px 6px 8px;
  text-align: center;
}

/*
   Alignment using classes rather than inline styles
   check out the "formats" option
  */

img.align-left {
  float: left;
}

img.align-right {
  float: right;
}

/* Basic styles for Table of Contents plugin (tableofcontents) */
.mce-toc {
  border: 1px solid gray;
}

.mce-toc h2 {
  margin: 4px;
}

.mce-toc li {
  list-style-type: none;
}

.list-unstyled{
  text-decoration: none !important;
  color: var(--bs-primary) !important;
}

.footer-width {
  width: 100%;
}

.section {
  padding: 40px 20px;
}

.blog-content img {
  width: 100%;
  /* Make the image responsive */
  /* max-height: 65vh;        Set the height as per your needs */
  object-fit: cover;
  /* Make the image behave like a cover */
  border-radius: 5px;
  /* Optional: add rounded corners for styling */
  margin-bottom: 10px;

}

@media (max-width: 768px) {

  /* .logo{
      height: auto;
    } */

  .blog-content img {
    height: 200px;

  }

  h1,
  h2,
  h3,
  h4,
  h5 {
    text-align: center;
  }

  .hero-section {
    background-color: #77ac7562 !important;
    min-height: 80vh;
  }

  .hero-text {
    max-width: 500px;
    padding: 20px;
  }

  .hero-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
  }

  .hero-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
  }

  .explore-link {
    color: #000;
    font-weight: 500;
    text-decoration: none !important;
  }

  .hero-main-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
  }

  @media (max-width: 768px) {
    .flex-md-row {
      flex-direction: column-reverse !important;
    }

    .hero-text {
      max-width: 100%;
      text-align: center;
    }

    .hero-text h1 {
      font-size: 2rem;
    }

    .hero-image {
      padding-top: 0 !important;
      padding-bottom: 0 !important;
    }
  }




  .text-start {
    text-align: center !important;
  }

  .text-muted {
    margin-top: 16px;
  }


}

@media (min-width: 769px) {
  .blog-content img {
    height: 400px;
  }
}

.blog-image {
  width: 100%;
  max-height: 250px;
  /* Improved image size */
  object-fit: cover;
  border-radius: 10px;
}

.custom-space {
  margin-bottom: 60px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .row.align-items-center {
    flex-direction: column;
    text-align: center;
  }

  .blog-image {
    max-height: 200px;
    margin-bottom: 15px;
  }
}

/*Green color for the about us page*/
.green-bold {
  color: var(--bs-primary);
}

.btn-outline-secondary.custom-hover {
  border-color: gray;
  /* Keeps gray border */
  color: gray;
  /* Text color */
}

.btn-outline-secondary.custom-hover:hover {
  background-color: green !important;
  /* Turns green on hover */
  border-color: green !important;
  /* Changes border to green */
  color: white !important;
  /* Text turns white */
}

.category-sidebar a {
  color: var(--bs-primary);
}

.social-sidebar a {
  color: var(--bs-primary);
}

.nav-link.text-muted:hover {
  color: green !important;
  font-weight: 700;
}

.nav-link.text-muted {
  transition: color 0.3s ease;
}

/* Change input focus border color to green */
.form-control:focus {
  border-color: green;
  box-shadow: 0 0 5px rgba(0, 128, 0, 0.5);
  /* Optional glow effect */
}

/* Change button color to green */
.btn-primary {
  background-color: green;
  border-color: green;
}

/* Change button hover effect */
.btn-primary:hover {
  background-color: darkgreen;
  border-color: darkgreen;
}

article.stronger p strong,
article.stronger li strong {
  color: var(--bs-primary);
}



footer {
  background-color: var(--dark-gray);
  color: #e4e4e4;
  padding: 4rem 0;
  font-size: 0.875rem;
}

footer h6 {
  color: var(--zorbis-green);
  font-weight: 600;
  margin-bottom: 1rem;
}

footer a {
  color: #e4e4e4;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--zorbis-green);
}

.footer-section {
  margin-bottom: 2rem;
}

.footer-section p {
  color: #ccc;
}

.footer-section ul {
  padding-left: 0;
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section .btn {
  background-color: var(--zorbis-green);
  border-color: var(--zorbis-green);
  color: white;
  font-weight: bold;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  transition: background-color 0.3s ease;
}

.footer-section .btn:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

.social-icons a {
  font-size: 1.25rem;
  color: #e4e4e4;
  margin-right: 1rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: var(--zorbis-green);
  transform: scale(1.1);
}

.footer-bottom {
  background-color: #1c1c1c;
  color: #ccc;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.75rem;
  margin-top: 2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-links div {
  flex: 1;
  min-width: 200px;
}

@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    align-items: center;
  }

  .footer-links div {
    text-align: center;
  }
}




#services {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 60px 25px;
  margin-bottom: 84px;
}

.service-card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 128, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 128, 0, 0.2);
}

.service-icon {
  font-size: 2.5rem;
  color: #198754;
  margin-bottom: 15px;
}

.card-title {
  font-weight: 600;
  font-size: 1.25rem;
}

.card-text {
  font-size: 0.95rem;
  line-height: 1.6;
}


.featured-section {
  background: linear-gradient(145deg, #ffffff, #f3fef8);
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 128, 0, 0.08);
  padding: 60px 40px;
  margin-bottom: 6px;
}

.featured-title {
  color: black;
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
}

.featured-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.featured-text h4 {
  font-size: 1.75rem;
  color: #14532d;
  font-weight: 700;
}

.featured-text p {
  font-size: 1.05rem;
  color: #333;
  margin-top: 10px;
}

.btn-feature {
  margin-top: 20px;
  background-color: #198754;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  color: white;
}

.btn-feature:hover {
  background-color: #146c43;
}





.carousel-item {
  padding: 3rem;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.carousel-inner {
  max-width: 700px;
  margin: auto;
}

.tip-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: #14532d;
}

.tip-content {
  font-size: 1.1rem;
  color: #424242;
  margin-top: 1rem;
}

.tip-source {
  margin-top: 1.5rem;
  display: inline-block;
  background-color: #00796b;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.tip-source:hover {
  background-color: #004d40;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: green;
  border-radius: 50%;
}

.tipsy-health{
  background-color: #14532d;
  padding: 16px;
  margin-bottom: 84px;
}


#faq {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 50px 25px;
  margin-top: 4px;
  margin-bottom: 84px;
}

#faq h2 {
  font-weight: bold;
  font-size: 2rem;
  color: #198754;
}

.titlez{
    font-weight: 800;
    color: #000 !important;
}

.accordion-item {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.accordion-button {
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  padding-right: 2.5rem;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.5) !important;
}

.accordion-button::after {
  position: absolute;
  right: 1.5rem;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.accordion-button[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.accordion-body {
  font-size: 0.95rem;
  line-height: 1.6;
  transition: all 0.3s ease-in-out;
}


ul li a.reference-link {
  color: var(--bs-primary);
  text-decoration: none;
}

ul li a.reference-link:hover {
  color: var(--bs-primary);
  text-decoration: underline;
}

div.p-4 ol.list-unstyled a.reference-link {
  color: var(--bs-primary);
  text-decoration: none;
}

div.p-4 ol.list-unstyled a.reference-link:hover {
  text-decoration: underline;
}


.explore-link,
.explore-link svg {
  color: black !important;
  text-decoration: none;
}


/* Admin section comments css */
.pending-comment {
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 10px;
}

/* Blog reference section styling */
.collapsed .bi-chevron-down {
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}
[aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}


/* styling categories page */

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.card-img-top {
  height: 220px;           /* Fixed height for all images */
  object-fit: cover;       /* Crop instead of stretch */
  object-position: center; /* Keep focus centered */
}


.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}
