:root {
  --body-bg-color: #f8fafc;
  --body-text-color: #222222;
  --heading-color: #222222;
  --hero-gradient1: #0b3d0a;
  --hero-gradient2: #0b3d0a;
  --footer-bg-color: #0d0d0d;
  --link-color: #0a7c32;
  --header-bg-color: #ffffff;
  --font-family: system-ui;
  --nav-link-color: #141414;
  --footer-text-color: #ffffff;
  --header-text-color: #ffffffff;
}

body {
  background-color: var(--body-bg-color) !important;
  color: var(--body-text-color) !important;
  font-family: var(--font-family);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1 {
  font-size: clamp(2rem, 4vw, 2.5rem) !important;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2rem) !important;
}
h3 {
  font-size: clamp(1.4rem, 3vw, 1.7rem) !important;
}
p {
  margin-bottom: 0.5rem !important;
}

section {
  padding: 15px 0;
  scroll-margin-top: 70px;
}

h2,
h3 {
  color: var(--heading-color) !important;
}

.content-area a {
  color: var(--link-color) !important;
  text-decoration: none !important;
}

.content-area a:hover {
  color: var(--link-color) !important;
  opacity: 0.8;
}

.sidebar-page-list {
  padding: 0;
  margin: 0;
  margin-bottom: 17px;
  width: 279px;
}

.sidebar-page-list li {
  list-style-type: disc;
  list-style-position: inside;
  color: var(--heading-color);
}

.sidebar-page-list li::marker {
  color: var(--link-color);
  font-size: 1.2em;
}
.sidebar-page-list li:last-child {
  border-bottom: none;
}

.sidebar-page-list li a {
  padding: 12px 0;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  color: var(--link-color);
}

.sidebar-page-list li a:hover {
  padding-left: 11px;
}

.error_page {
  min-height: 70vh;
}

.footer {
  background-color: var(--footer-bg-color);
  color: var(--footer-text-color);
}

.footer a {
  text-decoration: none;
  color: var(--link-color) !important;
}
.footer a:hover {
  color: var(--link-color) !important;
  opacity: 0.8;
}

.navbar {
  background-color: var(--header-bg-color) !important;
}

.hero-section {
  padding: 55px 0;
  position: relative;
  overflow: hidden;
  color: var(--header-text-color);
}

.hero-section.gradient-bg {
  background: linear-gradient(
    135deg,
    var(--hero-gradient1),
    var(--hero-gradient2)
  );
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .hero-section {
    padding: 60px 0;
  }
}
.navbar-light .navbar-nav .nav-link {
  color: var(--nav-link-color, #141414) !important;
}

.navbar-light .navbar-nav .nav-link.active {
  color: var(--link-color) !important;
  font-weight: bold;
}
/* Mobile nav */
@media (max-width: 1199.98px) {
  .navbar-collapse {
    position: fixed;
    top: 61px;
    left: 15px;
    right: 15px;
    background-color: color-mix(
      in srgb,
      var(--header-bg-color) 65%,
      transparent
    );
    backdrop-filter: blur(12px);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    padding: 15px;
    margin: 0;
  }

  .navbar-nav {
    width: 100%;
  }

  .navbar-nav .nav-item {
    margin: 7px 0;
  }

  .navbar-nav .nav-item:hover {
    transform: translateY(-1px);
  }

  .navbar-nav .nav-link {
    font-size: 1.2rem;
    font-weight: 500;
    text-decoration: none;
    display: block;
    padding: 0;
  }

  .navbar-toggler {
    z-index: 10000;
    position: relative;
    border: var(--bs-border-width) solid var(--nav-link-color, #141414) !important;
  }
}

@media screen and (min-width: 1199.98px) {
  .dropdown-menu {
    top: 100%;
    left: 50% !important;
    transform: translateX(-50%);
  }
}

.navbar .dropdown-toggle::after {
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.custom-dropdown {
  border: 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  min-width: 220px;
  background: color-mix(
    in srgb,
    var(--header-bg-color) 65%,
    transparent
  ) !important;
  backdrop-filter: blur(12px);
}

.custom-dropdown .dropdown-item {
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  color: var(--nav-link-color, #141414) !important;
  font-weight: 500;
  border-radius: 0;
  text-wrap: wrap;
}

.custom-dropdown .dropdown-item:hover {
  color: #fff;
  background: color-mix(
    in srgb,
    var(--header-bg-color) 95%,
    transparent
  ) !important;
}

.custom-dropdown .dropdown-item i {
  width: 16px;
  color: #6c757d;
  transition: color 0.3s ease;
}

.custom-dropdown .dropdown-item:hover i {
  color: #fff;
}

.dropdown-menu {
  opacity: 0;
  transition: all 0.3s ease;
  display: block;
  visibility: hidden;
}

.dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

@media (min-width: 1199.98px) {
  .custom-dropdown {
    max-width: 200px;
  }
}

@media (max-width: 1199.98px) {
  .custom-dropdown {
    display: none;
    background: #f8f9fa;
    box-shadow: none;
    border-radius: 0;
    margin-top: 0;
    border-top: 1px solid #dee2e6;
  }

  .custom-dropdown .dropdown-item:hover {
    margin: 0;
    border-radius: 0;
    transform: none;
  }
}

.dropdown-menu:hover,
.dropdown:hover .dropdown-menu {
  display: block !important;
  visibility: visible;
  opacity: 1;
}
.dropdown-item.active,
.dropdown-item:active {
  color: #fff;
  text-decoration: none;
  background-color: #91919131 !important;
}

.cust-bg {
  background: linear-gradient(145deg, #ffffff, #f9f9f9);
  border: 2px solid #0f9d58; /* accent green border */
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cust-bg:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.cust-bg h2 {
  font-family: "Playfair Display", serif;
  color: #0f9d58; /* green accent */
  font-size: 1.8rem;
  margin-bottom: 1rem;
  position: relative;
}

.cust-bg h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background: #0f9d58;
  margin-top: 6px;
  border-radius: 2px;
}

.cust-bg p {
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
  margin-bottom: 1.5rem;
}
.box {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 21px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  height: 100%;
}
.colored {
  color: var(--hero-gradient1) !important;
}

.faq-wrap {
  margin-inline: auto;
}

.faq-header {
  position: relative;
  border-radius: 18px;
  padding: 28px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.faq-header h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #000000 !important;
}
.faq-accent-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 999px;
  background: var(--accent);
  color: #031d0b;
  box-shadow: 0 6px 18px var(--ring);
}

/* Accordion styling */
.accordion.faq-accordion .accordion-item {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px !important;
  overflow: hidden;
  margin-top: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.accordion.faq-accordion .accordion-item:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.accordion-button {
  gap: 12px;
  font-weight: 700;
  color: #000000 !important;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0)
  );
  box-shadow: none !important;
  padding: 18px 20px;
}
.accordion-button .q-badge {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #06200f;
  font-size: 0.9rem;
  font-weight: 900;
}
.accordion-button:not(.collapsed) {
  color: #100f0f;
  background: linear-gradient(
    180deg,
    rgba(22, 163, 74, 0.18),
    rgba(22, 163, 74, 0.05)
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.accordion-button:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 0.25rem var(--ring);
}

.accordion-button::after {
  /* Replace default caret with Bootstrap icon */
  background-image: none;
  content: "\F282"; /* bi-chevron-down */
  font-family: "bootstrap-icons";
  transform: rotate(0deg);
  transition: transform 0.2s ease;
  color: #cfd3da;
}
.accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
  color: #3e3939;
}

.accordion-body {
  color: #cfd3da;
  padding: 18px 20px 20px;
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.664);
}

/* Utility buttons / links in answers */
.accent-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed rgba(22, 163, 74, 0.5);
}
.accent-link:hover {
  color: #d7ffe4;
  background: var(--accent-600);
  border-bottom-color: transparent;
  border-radius: 6px;
  padding-inline: 0.25rem;
  transition: all 0.15s ease;
}

/* Small helper: green underline on heading */
.underline-accent {
  position: relative;
  display: inline-block;
  padding-bottom: 0.25rem;
}
.underline-accent::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

/* Make it feel responsive & comfy */
@media (max-width: 576px) {
  .accordion-button {
    padding: 16px;
  }
  .accordion-body {
    padding: 16px;
  }
}
.white-img {
  filter: brightness(0) invert(1);
}
.error-container {
  text-align: center;
  padding: 3rem;
  backdrop-filter: blur(12px);
  animation: fadeIn 1s ease-in-out;
}

/* Big error code */
.error-code {
  font-size: 8rem;
  font-weight: 800;
  letter-spacing: -5px;
  background: linear-gradient(45deg, #ff6b6b, #f8e71c, #50e3c2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 3s infinite alternate;
}

/* Error heading */
.error-heading {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Icon animation */
.error-icon {
  font-size: 4rem;
  color: #ff6b6b;
  animation: float 3s ease-in-out infinite;
}

/* Button */
.btn-custom {
  background: linear-gradient(135deg, #ff6b6b, #f8e71c);
  border: none;
  color: #000;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(255, 107, 107, 0.4);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}
