:root {
  --body-bg-color: #f8fafc;
  --body-text-color: #222222;
  --heading-color: #222222;
  --hero-gradient1: #73373c;
  --hero-gradient2: #dd636e;
  --footer-bg-color: #73373c;
  --link-color: #dd636e;
  --header-bg-color: #73373c;
  --font-family: 'Book Antiqua', Palatino, serif;
  --nav-link-color: #f4ddb1;
  --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: 40px 0;
  scroll-margin-top: 70px;
}


section h2 {
  text-align: center;
  font-weight: 700;
  background: linear-gradient(134deg, #73373c, #f4ddb1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: underline double;
  text-underline-offset: 5px;
  text-decoration-color: var(--hero-gradient2);
}

section img {
  display: block;
  /* no size change */
  border-radius: 16px;
  /* just rounds corners visually */
  box-shadow:
    0 16px 32px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  transform-origin: center center;
  filter: saturate(1.06) contrast(1.05);
  transform: perspective(1100px) rotateX(6deg) rotateY(-7deg) translateY(-4px);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    filter 0.4s ease;
}

section img:hover {
  box-shadow:
    0 26px 52px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.18);
  filter: saturate(1.14) contrast(1.1);
}

.content-area a {
  color: var(--link-color) !important;
  text-decoration: underline double !important;
  text-decoration-color: var(--hero-gradient1);
  text-underline-offset: 3px;
}

.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: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--nav-link-color);
  color: var(--link-color) !important;
}

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


.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;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.hero-section {
  padding: 55px 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 {
  position: relative;
  background:
    /* cellular micro-grain */
    repeating-linear-gradient(90deg,
      rgba(255, 255, 255, 0.04) 0 2px,
      transparent 2px 6px),

    /* diagonal protein-fiber streaks */
    repeating-linear-gradient(135deg,
      rgba(0, 0, 0, 0.10) 0 8px,
      rgba(255, 255, 255, 0.05) 8px 20px),

    /* subtle research grid overlay */
    linear-gradient(45deg,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 40%),

    /* actual color gradient */
    linear-gradient(135deg,
      var(--hero-gradient1),
      var(--hero-gradient2));

  background-blend-mode: overlay, soft-light, overlay, normal;
}

/* inner content frame with a soft glow */
.hero-section .container {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 10px 20px;
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

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


@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0;
  }

}

.navbar-light .navbar-nav .nav-link {
  color: var(--nav-link-color, #141414) !important;
  font-weight: 500;
  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: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: block;
    padding: 0;
  }

  .dropdown-menu.show .nav-item .nav-link {
    padding: 0 10px;
  }

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

.blog-box {
  position: relative;
  background: radial-gradient(circle at top left, #ffffff 0, #f5f5f8 45%, #edf1f7 100%);
  border-radius: 18px;
  padding: 15px;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: translateY(0) scale(1);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
  height: 100%;
}

/* soft colored glow behind the card */
.blog-box::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 10% 0%,
      rgba(221, 99, 110, 0.32),
      transparent 55%);
  opacity: 0.0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

/* subtle diagonal light streak on top */
.blog-box::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -10%;
  width: 140%;
  height: 60%;
  background: linear-gradient(120deg,
      rgba(255, 255, 255, 0.7),
      rgba(255, 255, 255, 0.05),
      transparent);
  opacity: 0.0;
  transform: translate3d(-10px, 0, 0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* hover = depth + glow + light sweep */
.blog-box:hover {
  transform: translateY(-6px) scale(1.01) rotate3d(1, 0.3, 0, 6deg);
  box-shadow:
    0 24px 55px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(148, 163, 184, 0.3);
  background: radial-gradient(circle at top, #ffffff 0, #f3f4ff 35%, #e7ecff 100%);
}

.blog-box:hover::before {
  opacity: 1;
}

.blog-box:hover::after {
  opacity: 0.7;
  transform: translate3d(18px, 10px, 0);
}

/* image with slight float & rounded corners */
.blog-box img {
  border-radius: 14px;
  display: block;
  transform: translateZ(20px);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.20);
}

.blog-box:hover img {
  transform: translateZ(24px) scale(1.02);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.28);
}

/* title link */
.blog-box h2 {
  background: var(--hero-gradient2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: 18px;
  margin-bottom: 10px;
  text-decoration: none !important;
}

.blog-box h2 a {
  color: var(--heading-color) !important;
  text-decoration: none !important;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.blog-box h2 a:hover {
  color: var(--link-color) !important;
  background: none;
  letter-spacing: 0.01em;
  background: #73373c;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* text */
.blog-box p {
  color: var(--body-text-color);
  line-height: 1.6;
  opacity: 0.92;
}

/* read more “chip” button */
.blog-box .read-more-btn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(221, 99, 110, 0.08);
  color: var(--hero-gradient1);
  text-decoration: none !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-box .read-more-btn:hover {
  background: linear-gradient(135deg, var(--hero-gradient1), var(--hero-gradient2));
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(221, 99, 110, 0.4);
}


.box {
  position: relative;
  padding: 30px;
  border-radius: 20px;
  overflow: hidden;

  /* animated gradient background using your colors */
  background: linear-gradient(135deg,
      var(--hero-gradient1) 0%,
      #9e4048 25%,
      #e97780 50%,
      var(--hero-gradient2) 75%,
      #f18d96 100%);
  background-size: 220% 220%;
  animation: boxGradientShift 16s ease-in-out infinite;

  /* depth */
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  height: 100%;
}

.box h3,
.box p {
  color: #fff !important;
}

.box h3 {
  text-align: center;
  font-weight: 700;
  font-style: italic;
}

/* moving “lab light” streak on top */
.box::before {
  content: "";
  position: absolute;
  inset: -30%;
  pointer-events: none;
  border-radius: 40px;

  background: radial-gradient(circle at 0% 0%,
      rgba(255, 255, 255, 0.45),
      transparent 55%);

  mix-blend-mode: screen;
  opacity: 0.55;
  animation: boxLightSweep 18s linear infinite alternate;
}

/* animated subtle grain / texture (optional but cool) */
.box::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;

  background-image: repeating-linear-gradient(120deg,
      rgba(255, 255, 255, 0.18) 0 2px,
      transparent 2px 6px);

  mix-blend-mode: soft-light;
  animation: boxTextureDrift 22s linear infinite alternate;
}

/* keyframes */
@keyframes boxGradientShift {
  0% {
    background-position: 0% 0%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 100%;
  }
}

@keyframes boxLightSweep {
  0% {
    transform: translate3d(-20%, -10%, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(30%, 20%, 0) rotate(20deg);
  }

  100% {
    transform: translate3d(90%, 60%, 0) rotate(40deg);
  }
}

@keyframes boxTextureDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-40px, -40px, 0);
  }
}