:root {
  --body-bg-color: #f8fafc;
  --body-text-color: #222222;
  --heading-color: #222222;
  --hero-gradient1: #168295;
  --hero-gradient2: #0b5e3a;
  --footer-bg-color: #415a66;
  --link-color: #1ac7ae;
  --header-bg-color: #415a66;
  --font-family: system-ui;
  --nav-link-color: #ffffff;
  --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;
}

.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);
  border-top: 1px solid var(--link-color);
}
.footer a {
  text-decoration: none;
  color: var(--footer-text-color) !important;
}
.footer-title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  position: relative;
  color: var(--footer-text-color) !important;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.6rem;
}
.footer-links a {
  text-decoration: none;
  transition: all 0.3s ease;
}
.footer-links a:hover {
  padding-left: 6px;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}
.newsletter-form input {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  border: 0;
  outline: 0;
  background: color-mix(in srgb, var(--footer-bg-color) 80%, white 20%);
  color: var(--footer-text-color);
}
.newsletter-form input::placeholder {
  color: var(--footer-text-color);
}
.newsletter-form button {
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  border: 0;
  font-weight: 600;
  background: var(--link-color);
  color: var(--footer-text-color);
  transition: all 0.3s ease;
}
.newsletter-form button:hover {
  background: color-mix(in srgb, var(--link-color) 80%, white 20%);
}
.footer-divider {
  margin: 1.5rem 0;
  border-color: var(--link-color);
}

.navbar {
  background-color: transparent !important;
  transition:
    background-color 0.4s ease,
    box-shadow 0.3s ease;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
}
.navbar.scrolled {
  background-color: rgb(25 41 54 / 76%) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(31, 67, 88, 0.25);
}

.hero-section {
  padding: 135px 0 50px;
  position: relative;
  overflow: hidden;
  color: var(--header-text-color);
  box-shadow: 0 11px 15px 2px rgba(74, 149, 166, 0.48);
}

.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: 77px 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;
  }
}

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

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

.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;
}
/* Section heading block */
.heading {
  padding: 30px 21px;
  position: relative;
  margin: 30px 0;
  /* modern glassy separation without background-color */
  border: 1px solid rgba(31, 67, 88, 0.14);
  border-radius: 18px;
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Top icon + subtle "signal" line */
.heading::before {
  content: "☀︎";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;

  border-radius: 999px;
  border: 1px solid rgba(31, 67, 88, 0.22);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);

  color: #1f4358;
  font-size: 18px;
  line-height: 1;
}

/* Decorative divider under the title */
.heading::after {
  content: "";
  display: block;
  width: min(240px, 60%);
  height: 3px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(31, 67, 88, 0.55),
    transparent
  );
  opacity: 0.9;
}

/* Title */
.heading h2 {
  margin: 0 0 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.15;
  color: #1f4358;

  /* subtle depth */
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Paragraph text */
.heading p {
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.75;
  opacity: 0.92;
}

/* Add a modern icon bullet to each paragraph */
.heading h3 {
  position: relative;
  padding-left: 1.6rem;
  text-align: left; /* keeps it readable even inside text-center */
}

/* Icon for paragraph (light sensor vibe) */
.heading h3::before {
  content: "◉";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.1rem;
  height: 1.1rem;
  display: grid;
  place-items: center;

  border-radius: 999px;
  border: 1px solid rgba(31, 67, 88, 0.22);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);

  color: #1f4358;
  font-size: 0.85rem;
  line-height: 1;
}

/* Hover micro-interaction */
.heading:hover {
  transform: translateY(-1px);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  border-color: rgba(31, 67, 88, 0.22);
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
}
.header {
  margin-bottom: 17px;
}

/* Title */
.header h2 {
  position: relative;
  margin-bottom: 18px;

  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;

  color: #1f4358;

  /* modern depth */
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6),
    0 8px 30px rgba(31, 67, 88, 0.15);
}

/* Subtle light “signal” under title */
.header h2::after {
  content: "";
  display: block;
  margin: 14px auto 0;
  width: min(240px, 60%);
  height: 3px;
  border-radius: 999px;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(31, 67, 88, 0.55),
    transparent
  );
}

/* Paragraphs */
.header p {
  font-size: clamp(15.5px, 1.1vw, 17.5px);
  line-height: 1.8;
  opacity: 0.9;
  text-wrap: pretty;
}
.box {
  margin: 0 auto;
  padding: clamp(20px, 2.5vw, 28px);
  height: 100%;
  /* modern cool surface */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.75),
    rgba(240, 246, 250, 0.75)
  );

  border: 1px solid rgba(31, 67, 88, 0.18);
  border-radius: 18px;

  box-shadow:
    0 12px 30px rgba(31, 67, 88, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

/* Hover lift */
@media (hover: hover) {
  .box:hover {
    transform: translateY(-4px);
    border-color: rgba(31, 67, 88, 0.28);
    box-shadow:
      0 22px 55px rgba(31, 67, 88, 0.18),
      0 1px 0 rgba(255, 255, 255, 0.65) inset;
  }
}

/* Title */
.box h3 {
  position: relative;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;

  color: #1f4358;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6),
    0 6px 20px rgba(31, 67, 88, 0.12);
}

/* Light marker before title */
.box h3::before {
  content: "◉";
  display: inline-block;
  margin-right: 10px;

  font-size: 0.85em;
  color: #1f4358;
  opacity: 0.75;

  text-shadow: 0 0 10px rgba(31, 67, 88, 0.35);
}

/* Paragraphs */
.box p {
  margin: 12px 0 0;

  font-size: clamp(15px, 1.05vw, 16.5px);
  line-height: 1.75;
  opacity: 0.92;

  text-wrap: pretty;
}

/* Paragraph indicator */
.box p {
  position: relative;
  padding-left: 1.4rem;
}

.box p::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.25em;

  color: #1f4358;
  opacity: 0.55;
}

/* Entrance animation */
.box {
  animation: boxFade 600ms ease-out both;
}

@keyframes boxFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.title {
  position: relative;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #1f4358;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65),
    0 14px 40px rgba(31, 67, 88, 0.25);
}

/* Light-focus underline (left aligned) */
.title::after {
  content: "";
  display: block;
  margin-top: 14px;
  width: min(260px, 60%);
  height: 4px;
  border-radius: 999px;

  background: linear-gradient(
    90deg,
    rgba(31, 67, 88, 0.75),
    rgba(31, 67, 88, 0.25),
    transparent
  );
}
.rounded-5 {
  border-radius: 21px;
  box-shadow: 0 12px 30px rgba(31, 67, 88, 0.327);
}
.colored-bg {
  background-color: color-mix(in srgb, #e0f7fa 60%, white 40%);
  padding: 19px;
  border-radius: 15px;
}
.links {
  padding: 1.2rem 0;
  width: 279px;
}

/* Sidebar title */
.links h2 {
  margin-bottom: 14px;

  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;

  color: #1f4358;
  opacity: 0.85;
}

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

/* List item */
.sidebar-page-list li {
  margin-bottom: 6px;
}

/* Link */
.sidebar-page-list a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 14px;
  border-radius: 12px;

  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;

  color: #1f4358;
  opacity: 0.85;

  transition:
    background-color 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

/* Light sensor icon */
.sidebar-page-list a::before {
  content: "◉";
  font-size: 0.7rem;
  opacity: 0.55;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

/* Hover effect */
@media (hover: hover) {
  .sidebar-page-list a:hover {
    background: rgba(31, 67, 88, 0.08);
    opacity: 1;
    transform: translateX(4px);
  }

  .sidebar-page-list a:hover::before {
    transform: scale(1.4);
    opacity: 0.9;
  }
}

/* Active page */
.sidebar-page-list a.active {
  background: rgba(31, 67, 88, 0.12);
  font-weight: 600;
  opacity: 1;
}

/* Active indicator bar */
.sidebar-page-list a.active::after {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 3px;
  border-radius: 999px;
  background: #1f4358;
}
.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}

.footer-social span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;

  border-radius: 50%;
  text-decoration: none;

  font-size: 1.05rem;
  opacity: 0.75;

  transition:
    transform 180ms ease,
    background-color 180ms ease,
    opacity 180ms ease;
}

.footer-social span:hover {
  transform: translateY(-3px);
  background: rgba(31, 67, 88, 0.15);
  opacity: 1;
}

.navbar-nav {
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(
      90deg,
      rgba(186, 197, 218, 0),
      rgba(109, 143, 205, 0.56),
      rgba(186, 197, 218, 0)
    )
    1;
}
