:root {
  --body-bg-color: #f8fafc;
  --body-text-color: #222222;
  --heading-color: #222222;
  --hero-gradient1: #565ce1;
  --hero-gradient2: #31608c;
  --footer-bg-color: #f8fafc;
  --link-color: #565ce1;
  --header-bg-color: #ffffff;
  --font-family: system-ui;
  --nav-link-color: #141414;
  --footer-text-color: #000000;
  --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%, #565ce1 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 {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background-color: var(--header-bg-color) !important;
}

.hero-section {
  padding: 75px 0;
  position: relative;
  overflow: hidden;
  color: var(--header-text-color);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.246);
}

.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;
  font-weight: 500;
  padding: 0 1rem;
  transition: color 0.3s ease, transform 0.2s ease;
}
.navbar-light .navbar-nav .nav-link:hover {
  color: var(--link-color) !important;
  transform: translateY(-1px);
}
.navbar-light .navbar-nav .nav-link.active {
  color: var(--link-color) !important;
  font-weight: 600;
  border-bottom: 2px solid var(--link-color);
}

/* 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;
  }
}

.contact-email {
  color: var(--link-color);
  font-weight: 600;
  text-decoration: none;
}
.contact-email:hover {
  text-decoration: underline;
}
.contact-form-card,
.contact-info-card {
  background: var(--header-bg-color);
  color: var(--nav-link-color);
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}
.contact-info-card h2 {
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--nav-link-color) !important;
}
.contact-info-item {
  margin-top: 18px;
}
.contact-info-item .label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin-bottom: 4px;
}
.contact-form-card .form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--nav-link-colo);
}
.contact-form-card .form-control {
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  font-size: 0.95rem;
  padding: 0.55rem 0.75rem;
  background-color: #fff;
}
.contact-form-card .form-control::placeholder {
  color: #9ca3af;
}
.contact-form-card .form-control:focus {
  border-color: var(--hero-gradient1);
  box-shadow: 0 0 0 0.15rem rgba(22, 130, 149, 0.2);
}
.contact-submit-btn {
  background: linear-gradient(
    135deg,
    var(--hero-gradient1),
    var(--hero-gradient2)
  );
  border: 0;
  color: #fff !important;
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.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;
}
.img-move {
  animation: floatY 4s ease-in-out infinite;
}
@keyframes floatY {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Sidebar container */
.links {
  border-radius: 12px;
  background: #f8f9fc;
  width: 279px;
  margin-bottom: 15px;
}

/* Sidebar heading */
.links h3 {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4b5ec8;
  margin-bottom: 1rem;
}

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

/* List items */
.sidebar-page-list li {
  margin-bottom: 0.25rem;
}

/* Links */
.sidebar-page-list a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.95rem;
  color: #2b2f3a;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

/* Hover & focus */
.sidebar-page-list a:hover,
.sidebar-page-list a:focus {
  background-color: rgba(75, 94, 200, 0.1);
  color: #4b5ec8;
  transform: translateX(2px);
}

/* Active/current page (add .active to the link) */
.sidebar-page-list a.active {
  background-color: #4b5ec8;
  color: #ffffff;
  font-weight: 500;
}

/* Optional subtle divider effect */
.sidebar-page-list li:not(:last-child)::after {
  content: "";
  display: block;
  height: 1px;
  margin: 0.25rem 0;
  background: linear-gradient(to right, rgba(75, 94, 200, 0.15), transparent);
}
.heading {
  margin: 0 auto 1.5rem;
}
/* Title */
.heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: #1f2337;
  margin-bottom: 1rem;
  position: relative;
}

/* Accent underline */
.heading h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 0.75rem auto 0;
  border-radius: 2px;
  background: #4b5ec8;
}

/* Description text */
.heading p {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Main section title */
.fields h2 {
  font-weight: 700;
  color: #1f2337 !important;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

/* Intro paragraph */
.fields > p:first-of-type {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #3f4466;
}

/* Subsection headings */
.fields h3 {
  font-weight: 600;
  color: #4b5ec8;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  position: relative;
}

/* Subtle academic marker */
.fields h3::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: #4b5ec8;
  border-radius: 50%;
}

/* Paragraph text */
.fields p {
  font-size: 1rem;
  line-height: 1.8;
  color: #2f3450;
  margin-bottom: 1.1rem;
  text-align: left;
}

/* Improve reading flow */
.fields p + p {
  margin-top: 0.75rem;
}

/* Optional subtle section separation */
.fields h3 + p {
  padding-left: 0.25rem;
  border-left: 2px solid rgba(75, 94, 200, 0.2);
}

/* Responsive tuning */
@media (max-width: 768px) {
  .fields {
    padding: 0 19px;
  }

  .fields h3::before {
    left: -0.75rem;
  }
}
.img-section {
  border-radius: 14px;
  overflow: visible;
  margin-bottom: 1.5rem;
  position: relative;
}
.img-section .section-top-img {
  width: 100%;
  height: 250px;
  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, #435eb564 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,
    rgba(99, 102, 241, 0.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;
}
.title {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial;
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2.1rem);
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: #0b1220;

  padding-left: 0.9rem;
  border-left: 4px solid #565ce1;
  margin: 0 0 0.9rem;
}
/* Content box */
.box {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  padding: 27px 19px;
  height: 100%;

  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Subtle hover lift (optional) */
.box:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

/* Box heading */
.box h3 {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: #0f172a;

  margin-bottom: 0.6rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

/* Box text */
.box p {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #334155;

  margin: 0.5rem 0 0;
}

/* Slight emphasis for first paragraph */
.box p:first-of-type {
  color: #1f2937;
}
/* Section wrapper */
.modern-bg {
  background: radial-gradient(
      1200px 600px at 10% 0%,
      rgba(37, 99, 235, 0.08) 0%,
      rgba(37, 99, 235, 0) 55%
    ),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 70%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;

  padding: 30px 21px;
  margin: 30px auto;
}

/* H2: Section title */
.modern-bg h2 {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial;
  line-height: 1.15;
  font-weight: 780;
  letter-spacing: -0.02em;
  color: #0f172a;

  margin: 0 0 1.1rem;
}

/* H3: Subheads */
.modern-bg h3 {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial;
  line-height: 1.25;
  font-weight: 720;
  letter-spacing: -0.01em;
  color: #1e293b;

  margin-bottom: 0.55rem;

  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Subtle "bullet dot" before h3 (scientific, minimal) */
.modern-bg h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.75);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  flex: 0 0 auto;
}

/* Body text */
.modern-bg p {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial;
  font-size: 1rem;
  line-height: 1.75;
  color: #334155;

  margin: 0.55rem 0 1rem;
}

/* Slight emphasis for the first paragraph under the h2 */
.modern-bg > p:first-of-type {
  font-size: 1.05rem;
  color: #1f2937;
}

/* Optional: tighten spacing on very last paragraph */
.modern-bg p:last-child {
  margin-bottom: 0;
}
/* Section container */
.cust-bg {
  background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
  color: #e5e7eb;
  border-radius: 17px;
  padding: 30px 21px;
  margin: 30px auto;
  position: relative;
  overflow: hidden;
}

/* Subtle grid overlay (urban feel) */
.cust-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Section title */
.cust-bg h2 {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #f8fafc !important;

  margin-bottom: 1rem;
}

/* Body text */
.cust-bg p {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial;
  font-size: 1rem;
  line-height: 1.75;
  color: #cbd5f5;

  margin: 0.6rem 0 1.2rem;
}

/* List styling */
.cust-bg ul {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 1.8rem;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem 1.5rem;
}

/* List items */
.cust-bg li {
  position: relative;
  padding-left: 1.5rem;

  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e5e7eb;
}

/* Signal-style bullet */
.cust-bg li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;

  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

/* Last paragraph spacing */
.cust-bg p:last-of-type {
  margin-bottom: 0;
}
.box-first {
  background-color: rgba(224, 242, 254, 0.9); /* light cyan */
  padding: 17px 15px;
}

.box-second {
  background-color: rgba(226, 232, 240, 0.95); /* neutral slate */
  padding: 17px 15px;
}
.box-first,
.box-second {
  border: 1px solid rgba(15, 23, 42, 0.08);
}
@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;
  }
}
.flex-list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 25px;
  list-style-position: inside;
}

.img-scale {
  transition: transform 0.3s ease;
}
.img-scale:hover {
  transform: scale(1.1);
}