:root {
  --body-bg-color: #f8fafc;
  --body-text-color: #1c1c1c;
  --heading-color: #717171;
  --hero-gradient1: #667eea;
  --hero-gradient2: #764ba2;
  --footer-bg-color: #3e3c3c;
  --link-color: #e63946;
  --header-bg-color: #ffffff;
  --font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --nav-link-color: #141414;
  --footer-text-color: #ffffff;
  --header-text-color: #ffffffff;
}
html {
  overflow-x: hidden;
}
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;
  position: sticky;
  top: 0;
  z-index: 1020;
}

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

.hero-section.with-bg {
  background-image: url("/images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section.with-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgb(0, 0, 0));
  opacity: 0.5;
  z-index: 1;
}

.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;
}

.contact-container {
  width: 500px;
  margin: 100px auto 35px;
  padding: 15px 21px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
  color: black !important;
}

@media screen and (max-width: 768px) {
  .contact-container {
    width: 100%;
    padding: 15px;
  }
}
.contact-header {
  text-align: center;
  margin-bottom: 20px;
}

.contact-header i {
  font-size: 2rem;
  color: #0d6efd;
  margin-bottom: 10px;
}

.email-link {
  display: block;
  margin-top: 15px;
  text-align: center;
  font-weight: bold;
  color: #0d6efd;
  text-decoration: none;
}
.heading {
  text-align: center;
  color: #222; /* dark text for light theme */
  font-family: "Poppins", sans-serif;
}

.heading h2 {
  font-weight: 700;
  color: #111;
  letter-spacing: 0.5px;
}

.heading h2 span {
  color: #e63946; /* dark accent color (red tone) */
}

.heading p {
  line-height: 1.8;
  margin: 0.75rem auto;
}

@media (min-width: 768px) {
  .heading h2 {
    font-size: 2.5rem;
  }

  .heading p {
    font-size: 1.05rem;
  }
}

.line {
  font-weight: 700;
  text-align: center;
  color: #111;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  position: relative;
}

.line::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #e63946;
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.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%;
}
.body-control {
  padding: 2rem 1.5rem;
  font-family: "Poppins", sans-serif;
  color: #222;
  margin: 0 auto;
  position: relative;
}

.body-control-title {
  font-weight: 700;
  text-align: center;
  margin: 2rem 0 1.5rem;
  letter-spacing: 0.5px;
  color: #111;
  position: relative;
}

.body-control-title::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background-color: #e63946;
  margin: 0.75rem auto 0;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.body-control:hover .body-control-title::after {
  width: 110px;
}

.body-control-intro {
  text-align: center;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.body-control-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  color: #111;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1rem;
}

.body-control-subtitle::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 4px;
  height: 1em;
  background: #e63946;
  border-radius: 2px;
  transition: height 0.3s ease;
}

.body-control-subtitle:hover::before {
  height: 1.5em;
}

.body-control-text {
  line-height: 1.8;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.body-control-text:hover {
  transform: translateX(3px);
}

@media (min-width: 768px) {
  .body-control-title {
    font-size: 2.6rem;
  }

  .body-control-subtitle {
    font-size: 1.5rem;
  }

  .body-control-intro,
  .body-control-text {
    font-size: 1.1rem;
  }
}
.rounded {
  border-radius: 21px !important;
}
.cust-bg {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #222;
  padding: 2rem 21px;
  font-family: "Poppins", sans-serif;
  border-top: 4px solid #e63946;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  line-height: 1.8;
}
.colored {
  color: var(--link-color);
}
.box-first,
.box-second {
  background-color: #e7e9ebde;
  padding: 17px 15px;
}
.box-second {
  background-color: #c5c5c5de;
}
@media (min-width: 767px) {
  .box-first {
    border-top-left-radius: 21px;
    border-bottom-left-radius: 21px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
  }
  .box-second {
    border-top-right-radius: 21px;
    border-bottom-right-radius: 21px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
  }
}
@media (max-width: 767px) {
  .box-first {
    border-radius: 21px 21px 0 0;
  }
  .box-second {
    border-radius: 0 0 21px 21px;
  }
}
.img-section {
  border-radius: 14px;
  overflow: visible;
  margin-bottom: 1.5rem;
  position: relative;
}
.img-section .section-top-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06);
}
.img-section__content {
  background: linear-gradient(180deg, #fff 0, #d5d5d5 100%);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  padding: 1.25rem 17px;
  margin-top: -6px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.04);
}
.img-section__content h2 {
  background: linear-gradient(
    90deg,
    rgb(241 99 99 / 12%),
    rgba(16, 185, 129, 0.04)
  );
  color: #0f172a;
  padding: 0.4rem 5px;
  border-radius: 8px;
  margin-bottom: 0.4rem;
  box-shadow: 0 4px 12px rgba(2, 6, 23, 0.03);
}
.img-section__content h3 {
  color: #0b1220;
  font-weight: 600;
}
.content-block {
  background-color: #f8f9fa; /* subtle light background */
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 3.5rem 2rem;
  font-family: "Poppins", sans-serif;
  color: #222;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  line-height: 1.8;
}

.content-block h2 {
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid #e63946; /* red accent */
  line-height: 1.3;
}

.content-block h2:first-of-type {
  margin-top: 0;
}

.content-block p {
  color: #333;
  margin-bottom: 1.2rem;
}
.full-width-section {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.dark-bg {
  background-color: #222;
}
.footer-links {
  background-color: #f8f9fa; /* light background */
  padding: 2.5rem 1rem;
  text-align: center;
  border-top: 2px solid #e0e0e0;
  margin-top: 4rem;
  font-family: "Poppins", sans-serif;
}

.footer-links h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #111;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 2rem; /* space between links */
  flex-wrap: wrap; /* wrap on smaller screens */
}

.footer-links ul li a {
  text-decoration: none;
  font-size: 1rem;
  color: #333;
  position: relative;
  transition: color 0.3s ease;
}

.footer-links ul li a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -3px;
  left: 0;
  background-color: #e63946; /* red accent */
  transition: width 0.3s ease;
}

.footer-links ul li a:hover {
  color: #e63946;
}

.footer-links ul li a:hover::after {
  width: 100%;
}

@media (min-width: 768px) {
  .footer-links h2 {
    font-size: 1.8rem;
  }

  .footer-links ul li a {
    font-size: 1.05rem;
  }
}
.site-footer .footer-top {
  background: linear-gradient(
    180deg,
    rgb(42 15 15 / 95%) 0%,
    rgba(15, 23, 42, 0.95) 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.site-footer .footer-brand img {
  filter: brightness(0) invert(1);
}
.site-footer .footer-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.site-footer .footer-link:hover,
.site-footer .footer-link:focus {
  color: #ffd166;
  text-decoration: underline;
}
.site-footer .social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease;
}
.site-footer .social-btn i {
  font-size: 16px;
}
.site-footer .social-btn:hover {
  transform: translateY(-3px);
  background: rgba(255, 209, 102, 0.12);
  color: #ffd166;
}
.subscribe-form .form-control {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
}
.subscribe-form .btn {
  white-space: nowrap;
}
.footer-bottom {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.6));
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* Responsive tweaks */
@media (max-width: 575.98px) {
  .site-footer .footer-brand img {
    width: 140px;
    height: auto;
  }
  .site-footer .social-btn {
    width: 32px;
    height: 32px;
  }
}

.site-footer .footer-top {
  background: linear-gradient(
    180deg,
    rgb(27 7 7 / 95%) 0%,
    rgba(15, 23, 42, 0.95) 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.site-footer .footer-brand img {
  filter: brightness(0) invert(1);
}
.site-footer .footer-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.site-footer .footer-link:hover,
.site-footer .footer-link:focus {
  color: #ffd166;
  text-decoration: underline;
}
.site-footer .social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease;
}
.site-footer .social-btn i {
  font-size: 16px;
}
.site-footer .social-btn:hover {
  transform: translateY(-3px);
  background: rgba(255, 209, 102, 0.12);
  color: #ffd166;
}
.subscribe-form .form-control {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
}
.subscribe-form .btn {
  white-space: nowrap;
}
.footer-bottom {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.6));
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* Responsive tweaks */
@media (max-width: 575.98px) {
  .site-footer .footer-brand img {
    width: 140px;
    height: auto;
  }
  .site-footer .social-btn {
    width: 32px;
    height: 32px;
  }
}
.error-hero {
  min-height: calc(100vh - 160px); /* leaves room for header/footer */
  display: flex;
  align-items: center;
  background: linear-gradient(
    180deg,
    rgba(8, 12, 20, 0.9),
    rgba(14, 20, 34, 0.95)
  );
  color: #fff;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.error-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(6px);
  padding: 2rem;
}

.error-badge {
  width: 82px;
  height: 82px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(255, 209, 102, 0.12),
    rgba(255, 255, 255, 0.03)
  );
  color: #ffd166;
  font-size: 1.4rem;
}

.error-card .display-1 {
  letter-spacing: -2px;
  margin-bottom: 0;
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.error-card p.lead {
  color: rgba(255, 255, 255, 0.85);
}

.error-search .form-control {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
}
.error-search .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.error-card .btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.error-card .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

@media (max-width: 575.98px) {
  .error-hero {
    padding-top: 2rem;
    padding-bottom: 2rem;
    min-height: auto;
  }
  .error-card {
    padding: 1.25rem;
  }
  .error-badge {
    width: 64px;
    height: 64px;
  }
  .error-search {
    flex-direction: column;
    gap: 0.5rem;
  }
  .error-search .form-control {
    width: 100%;
  }
  .error-search .btn {
    width: 100%;
  }
}

.error-hero {
  min-height: calc(100vh - 160px); /* leaves room for header/footer */
  display: flex;
  align-items: center;
  background: linear-gradient(
    180deg,
    rgba(8, 12, 20, 0.9),
    rgba(14, 20, 34, 0.95)
  );
  color: #fff;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.error-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(6px);
  padding: 2rem;
}

.error-badge {
  width: 82px;
  height: 82px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(255, 209, 102, 0.12),
    rgba(255, 255, 255, 0.03)
  );
  color: #ffd166;
  font-size: 1.4rem;
}

.error-card .display-1 {
  letter-spacing: -2px;
  margin-bottom: 0;
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.error-card p.lead {
  color: rgba(255, 255, 255, 0.85);
}

.error-search .form-control {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
}
.error-search .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.error-card .btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.error-card .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

@media (max-width: 575.98px) {
  .error-hero {
    padding-top: 2rem;
    padding-bottom: 2rem;
    min-height: auto;
  }
  .error-card {
    padding: 1.25rem;
  }
  .error-badge {
    width: 64px;
    height: 64px;
  }
  .error-search {
    flex-direction: column;
    gap: 0.5rem;
  }
  .error-search .form-control {
    width: 100%;
  }
  .error-search .btn {
    width: 100%;
  }
}
