:root {
  --body-bg-color: #ffffff;
  --body-text-color: #222222;
  --heading-color: #222222;
  --hero-gradient1: #168295;
  --hero-gradient2: #3348c8;
  --footer-bg-color: #000000;
  --link-color: #3348c8;
  --header-bg-color: #ffffff;
  --font-family: system-ui;
  --nav-link-color: #141414;
  --footer-text-color: #ffffff;
  --header-text-color: #ffffffff;
}
html {
  overflow-x: hidden;
}
body {
  background-color: var(--body-bg-color);
  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 Box */
.sidebar-links {
  width: 279px;
  background: #ffffff;
  border: 1px solid rgba(51, 72, 200, 0.08);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  font-family: var(--font-family);
}

/* Title */
.sidebar-links h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 1.25rem;
  position: relative;
  padding-left: 0.9rem;
}

/* Accent line */
.sidebar-links h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 4px;
  height: 80%;
  background: var(--link-color);
  border-radius: 999px;
}

/* List */
.sidebar-page-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Items */
.sidebar-page-list li + li {
  margin-top: 0.75rem;
}

/* Links */
.sidebar-page-list a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--nav-link-color);
  background: #f8f9ff;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  font-weight: 500;
  transition:
    background 0.25s ease,
    transform 0.2s ease,
    color 0.25s ease;
}

/* Arrow */
.sidebar-page-list a::before {
  content: "→";
  color: var(--link-color);
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

/* Hover */
.sidebar-page-list a:hover {
  background: rgba(51, 72, 200, 0.08);
  color: var(--link-color);
  transform: translateX(4px);
}

.sidebar-page-list a:hover::before {
  transform: translateX(2px);
}

/* Mobile */
@media (max-width: 991px) {
  .sidebar-links {
    width: 100%;
    position: relative;
    top: 0;
  }
}

.twitter-tweet {
  width: 279px !important;
}

.x {
  display: flex;
  justify-content: center;
}

.error_page {
  min-height: 70vh;
}

.footer {
  background: var(--footer-bg-color);
  color: var(--footer-text-color);
  padding-top: clamp(1rem, 3vw, 2rem);
  padding-bottom: clamp(1.75rem, 2.5vw, 2.5rem);
  position: relative;
  overflow: hidden;
}

.footer a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;

  transition:
    opacity 0.2s ease,
    text-decoration-color 0.2s ease;
}

.footer a:hover,
.footer a:focus-visible {
  opacity: 0.9;
}
.footer .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--footer-text-color);
  background: var(--link-color);
  font-size: 1.25rem;
  line-height: 1;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.footer .social-icon:hover,
.footer .social-icon:focus-visible {
  transform: translateY(-3px);
  background: var(--link-color / 30%);
}

.footer .footer-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--footer-text-color) 40%,
    transparent
  );
  margin: 1.25rem 0;
}

.footer .small {
  font-style: italic;
  font-size: 0.95rem;
}

@media (max-width: 575.98px) {
  .footer .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  .footer .small {
    font-size: 0.9rem;
  }
}

.footer img {
  filter: brightness(0) invert(1);
}

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

.hero-section {
  padding: 155px 0 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;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.45) 90%,
    rgba(26, 30, 30, 0.8) 95%,
    var(--body-bg-color) 100%
  );
  z-index: 1;
}

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

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

.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;
}
.dropdown-menu {
  display: none;
}

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

.nav-item.dropdown > .nav-link {
  display: flex;
  align-items: center;
}

.nav-item.dropdown > .nav-link .arrow {
  position: relative;
  margin-left: auto;
  border: solid var(--nav-link-color, #141414);
  border-width: 0 2px 2px 0;
  padding: 3px;
  transform: rotate(45deg);
  transition: transform 0.25s;
}
.dropdown.open .dropdown-menu {
  display: block;
}

@media (min-width: 1200px) {
  .nav-item.dropdown {
    position: relative;
  }
  .nav-item.dropdown > .nav-link .arrow {
    margin-left: 7px;
  }
  .custom-dropdown.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0;
    z-index: 1000;
  }

  .nav-item.dropdown:hover > .nav-link .arrow {
    transform: rotate(-135deg);
  }
  .nav-item.dropdown:hover > .dropdown-menu {
    display: block !important;
  }
}
@media (max-width: 1199px) {
  .nav-item.dropdown > .nav-link .arrow {
    padding: 4px;
  }
}

.floating-rounded-navbar {
  background-color: var(--header-bg-color) !important;
  position: absolute !important;
  top: 15px !important;
  left: 7px !important;
  right: 7px !important;
  width: calc(100% - 11px) !important;
  z-index: 2000;
  border-radius: 21px;
  transition: all 0.3s ease;
}

@media (max-width: 1199.98px) {
  .floating-rounded-navbar .navbar-collapse {
    top: 85px !important;
  }
}

.navbar-brand {
  margin-right: 0 !important;
}

.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--link-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}
.scroll-top i {
  font-size: 24px;
  color: var(--footer-bg-color);
  line-height: 0;
}
.scroll-top:hover {
  background-color: color-mix(in srgb, var(--link-color), transparent 20%);
  color: var(--footer-bg-color);
}
.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

.cust-bg {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
  padding: 1rem 25px;
  border-radius: 1.5rem;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.05),
    0 2px 10px rgba(51, 72, 200, 0.06);
  color: var(--body-text-color);
  font-family: var(--font-family);
  position: relative;
  overflow: hidden;
  margin: 30px auto;
}

/* Decorative glow */
.cust-bg::before {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  background: rgba(51, 72, 200, 0.06);
  border-radius: 50%;
  top: -120px;
  right: -120px;
  z-index: 0;
}

/* Keep content above glow */
.cust-bg > * {
  position: relative;
  z-index: 1;
}

/* Heading */
.cust-bg h2 {
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

/* Paragraphs */
.cust-bg p {
  line-height: 1.9;
  color: var(--body-text-color);
  margin-bottom: 1.25rem;
}

/* Image */
.cust-bg img {
  border-radius: 1rem;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.12),
    0 2px 10px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  max-width: 100%;
}

.cust-bg img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.16),
    0 4px 14px rgba(51, 72, 200, 0.15);
}

.cust-bg ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.cust-bg ol li {
  margin-bottom: 1rem;
  line-height: 1.7;
  padding-left: 0.5rem;
  color: var(--body-text-color);
}

/* Highlighted numbers */
.cust-bg ol li::marker {
  color: var(--link-color);
  font-weight: 700;
}

/* Links */
.cust-bg a {
  color: var(--link-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease;
}

.cust-bg a:hover {
  color: #1f33a8;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .cust-bg {
    padding: 1rem 19px;
    border-radius: 1rem;
  }
  .cust-bg h2 {
    text-align: center;
  }
}

.title {
  position: relative;
  padding-left: 1.25rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--heading-color);
}

/* Vertical line */
.title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 4px;
  height: 85%;
  background: linear-gradient(to bottom, var(--link-color), #7f8cff);
  border-radius: 999px;
}

.img_el {
  padding: 30px 0;
  position: relative;
  margin: 30px auto;
}
.img_el:before {
  content: "";
  background: color-mix(in srgb, #00000091, transparent 30%);
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 17px;
}
.img_el .img_el-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url("/images/preserving-data.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  border-radius: 17px;
}
.img_el .container {
  position: relative;
  z-index: 3;
}
.img_el .container h2,
.img_el .container p {
  color: white !important;
}
.img_el .container a {
  color: #03adff !important;
}
.modern-bg {
  background: #f8f9ff;
  padding: 3rem 2rem;
  border-radius: 1.25rem;
  font-family: var(--font-family);
  color: var(--body-text-color);
  border: 1px solid rgba(51, 72, 200, 0.08);
}

/* Headings */
.modern-bg h2 {
  position: relative;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--heading-color);
  margin-bottom: 1.25rem;
  padding-left: 1rem;
}

/* Vertical accent line */
.modern-bg h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 4px;
  height: 80%;
  background: var(--link-color);
  border-radius: 999px;
}

/* Paragraphs */
.modern-bg p {
  font-size: 1.05rem;
  line-height: 1.9;
  margin-bottom: 1.25rem;
  color: var(--body-text-color);
}

/* Spacing between sections */
.modern-bg h2:not(:first-child) {
  margin-top: 3rem;
}

/* Mobile */
@media (max-width: 768px) {
  .modern-bg {
    padding: 2rem 19px;
  }
}
.newsletter-box {
  width: 279px;
  margin-bottom: 15px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
  border: 1px solid rgba(51, 72, 200, 0.08);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  font-family: var(--font-family);
}

/* Heading */
.newsletter-box h2 {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--heading-color);
  margin-bottom: 1rem;
  position: relative;
  padding-left: 0.9rem;
}

/* Accent line */
.newsletter-box h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 4px;
  height: 80%;
  background: var(--link-color);
  border-radius: 999px;
}

/* Text */
.newsletter-box p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--body-text-color);
  margin-bottom: 1.25rem;
}

/* Form */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Input */
.newsletter-form input {
  width: 100%;
  border: 1px solid rgba(51, 72, 200, 0.15);
  background: #ffffff;
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  color: var(--body-text-color);
  outline: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.newsletter-form input:focus {
  border-color: var(--link-color);
  box-shadow: 0 0 0 4px rgba(51, 72, 200, 0.08);
}

/* Button */
.newsletter-form button {
  border: none;
  background: var(--link-color);
  color: #ffffff;
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.newsletter-form button:hover {
  background: #2439b5;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(51, 72, 200, 0.2);
}

/* Mobile */
@media (max-width: 991px) {
  .newsletter-box {
    width: 100%;
  }
}

.heading {
  max-width: 950px;
  margin: 0 auto;
  padding: 3rem 1rem;
  font-family: var(--font-family);
  color: var(--body-text-color);
}

.heading h2 {
  position: relative;
  padding-bottom: 15px;
}

/* Line after heading */
.heading h2::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  background: var(--link-color);
  border-radius: 999px;
  margin: 1rem auto 0;
}

.heading p {
  margin: 0 auto;
  color: var(--body-text-color);
  font-size: 1.05rem;
  line-height: 1.9;
}
