/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root {
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #444444; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #37517e; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #ffaf26; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #000; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
  --nav-hover-color: var(--accent-color);
  --nav-dropdown-hover-color: var(
      --accent-color
  ); /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

.dark-background {
  --background-color: #006c3d;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #4668a2;
  --contrast-color: #ffffff;
}

.index-page.scrolled .header {
  --background-color: rgba(0, 0, 0, 0.7);
}
.index-page .header {
  --background-color: rgba(0, 0, 0, 0.05);
}

#scroll-top .whatsapp-floating {
  position: fixed;
  background-color: #24cc63;
  color: #fff;
  right: 1rem;
  bottom: 0;
  padding: 0.5rem 1rem;
  border-top-left-radius: 0.3rem;
  border-top-right-radius: 0.3rem;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}
#scroll-top.shown .whatsapp-floating {
  right: 5rem;
}

/* ===== Knowledge Categories (Simple & Elegant) ===== */
#knowledge-categories {
  background: #fff;
  padding: 70px 0;
}
#knowledge-categories .container {
  max-width: 80%;
  margin: 0 auto;
}
#knowledge-categories h2 {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  color: #222;
  margin-bottom: 40px;
}
#knowledge-categories .category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
#knowledge-categories .category-card {
  border: 1.5px solid #ffaf26;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  padding: 25px 10px;
  color: #ffaf26;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
}
#knowledge-categories .category-card:hover {
  background: #ffaf26;
  color: #fff;
  transform: translateY(-4px);
}
#knowledge-categories .view-all {
  text-align: center;
  margin-top: 45px;
}
#knowledge-categories .view-all a {
  display: inline-block;
  padding: 10px 30px;
  border-radius: 6px;
  color: #ffaf26;
  border: 1.5px solid #ffaf26;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
}
#knowledge-categories .view-all a:hover {
  background: #ffaf26;
  color: #fff;
}
@media (max-width: 768px) {
  #knowledge-categories .container {
    max-width: 90%;
  }
  #knowledge-categories h2 {
    font-size: 24px;
    margin-bottom: 30px;
  }
  #knowledge-categories .category-card {
    font-size: 16px;
    padding: 20px 8px;
  }
}
@media (max-width: 480px) {
  #knowledge-categories .container {
    max-width: 95%;
  }
  #knowledge-categories .category-card {
    font-size: 15px;
    padding: 18px 6px;
  }
}

.text-orange {
  color: #ffaf26 !important;
}

.kbase-page {
  max-width: 80%;
  margin: 0 auto;
  padding: 2rem 0;
}
.kbase-page .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.kbase-page .breadcrumb a {
  color: #ffaf26;
  text-decoration: none;
  transition: color 0.2s;
}
.kbase-page .breadcrumb a:hover {
  color: rgb(242, 152.7834101382, 0);
}
.kbase-page .breadcrumb span {
  color: #999;
}
.kbase-page .search-bar {
  display: flex;
  gap: 0.5rem;
}
.kbase-page .search-bar input {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
}
.kbase-page .search-bar button {
  background-color: #ffaf26;
  border: none;
  border-radius: 6px;
  color: #fff;
  padding: 0.5rem 0.9rem;
  transition: background-color 0.2s;
}
.kbase-page .search-bar button:hover {
  background-color: rgb(252.2, 159.2230414747, 0);
}
.kbase-page h1 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1.5rem;
  border-left: 5px solid #ffaf26;
  padding-left: 0.5rem;
}
.kbase-page .alert {
  background-color: #ffaf26;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.75rem 1rem;
}
.kbase-page .alert i {
  cursor: pointer;
}
.kbase-page .article-list .article-item {
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.kbase-page .article-list .article-item .article-title a {
  color: #333;
  font-weight: 600;
  text-decoration: none;
}
.kbase-page .article-list .article-item .article-title a:hover {
  color: #ffaf26;
}
.kbase-page .article-list .article-item .article-meta {
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.25rem;
}
.kbase-page .article-list .alert-light {
  background-color: #fff8e6;
  color: #555;
  border: 1px solid #ffaf26;
  border-radius: 6px;
}
.kbase-page .sidebar {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 1.5rem;
}
.kbase-page .sidebar h4 {
  color: #333;
  border-bottom: 2px solid #ffaf26;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  text-align: center;
}
.kbase-page .sidebar .category-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.kbase-page .sidebar .category-list li {
  margin-bottom: 0.5rem;
}
.kbase-page .sidebar .category-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #333;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s;
}
.kbase-page .sidebar .category-list li a:hover {
  background-color: #fff5d9;
}
.kbase-page .sidebar .category-list li a.active {
  background-color: #ffaf26;
  color: #fff;
}
.kbase-page .sidebar .category-list li a span {
  font-size: 0.85rem;
}
@media (max-width: 992px) {
  .kbase-page {
    max-width: 95%;
  }
  .kbase-page .sidebar {
    margin-top: 2rem;
  }
}

.kbase-show {
  max-width: 80%;
  margin: 0 auto;
}
.kbase-show .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.kbase-show .breadcrumb a {
  color: #ffaf26;
  text-decoration: none;
  transition: color 0.2s;
}
.kbase-show .breadcrumb a:hover {
  color: rgb(242, 152.7834101382, 0);
}
.kbase-show .breadcrumb span {
  color: #999;
}
.kbase-show .kbase-article h2 {
  font-size: 1.8rem;
  font-weight: 700;
  border-left: 5px solid #ffaf26;
  padding-left: 0.6rem;
  color: #333;
  margin-bottom: 1rem;
}
.kbase-show .kbase-article p.text-muted {
  font-size: 0.95rem;
  color: #666;
}
.kbase-show .kbase-article .content {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
}
.kbase-show .kbase-article .content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 1rem 0;
}
.kbase-show .kbase-article .content h3,
.kbase-show .kbase-article .content h4 {
  margin-top: 1.5rem;
  color: #333;
}
.kbase-show .kbase-article .content a {
  color: #ffaf26;
  text-decoration: underline;
}
.kbase-show .kbase-article .content a:hover {
  color: rgb(252.2, 159.2230414747, 0);
}
.kbase-show .related-articles {
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
}
.kbase-show .related-articles h5 {
  border-bottom: 2px solid #ffaf26;
  padding-bottom: 0.5rem;
  color: #333;
}
.kbase-show .related-articles .related-item {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 0.75rem;
}
.kbase-show .related-articles .related-item:last-child {
  border-bottom: none;
}
.kbase-show .related-articles .related-item a {
  color: #333;
  transition: color 0.2s;
}
.kbase-show .related-articles .related-item a:hover {
  color: #ffaf26;
}
.kbase-show .related-articles .related-item p {
  font-size: 0.85rem;
  color: #777;
}
@media (max-width: 992px) {
  .kbase-show {
    max-width: 95%;
  }
  .kbase-show .related-articles {
    margin-top: 2rem;
  }
}
