/*Gobal variables*/
:root {
  --background-color: #070d16;
  --yellow: #fea711;
  --orange: #ff7600;
  --white: #ffffff;
  --blue: #3f476e;
  --blue-light: #A7C7E7;

  --navbar-height: 97px;
  --height: calc(100vh - var(--navbar-height));
}

/*Global color classes*/
.text-yellow {
  color: var(--yellow);
}

.text-orange {
  color: var(--orange);
}

.text-white {
  color: var(--white);
}

/*================================================
navbar color styling
================================================ */
.navbar-color {
  background-color: rgba(7, 13, 22, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  /* box-shadow: 0px 0px 10px red; */
}

.navbar-color .navbar-nav .nav-link {
  color: var(--yellow);
}

.navbar-color .navbar-nav .nav-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--orange);
}

.navbar-color .navbar-nav .nav-link.show,
.navbar-color .navbar-nav .show > .nav-link {
  color: var(--yellow);
}

.dropdown-menu {
  background-color: var(--background-color);
}

.dropdown-item {
  color: var(--white);
}

.dropdown-item:hover {
  background: var(--yellow);
  color: var(--white);
}

/*==========================
Header styling
========================= */

.header-text {
  color: var(--orange);
  font-weight: bold;
  text-shadow: 2px 2px 4px var(--blue);
}

.header-paragraph {
  font-size: 1.25rem;
  color: var(--orange);
  text-shadow: 1px 1px 2px var(--blue);
}

/* .layered-text {
  position: relative;
  display: inline-block;
  color: var(--yellow);
  z-index: 2;
  font-weight: bold;
}

.layered-text::before,
.layered-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
}

.layered-text::before {
  color: var(--orange);
  transform: translate(1px, 1px);
  z-index: -1;
}

.layered-text::after {
  color: var(--white);
  transform: translate(2px,2px);
  z-index: -2;
} */

/*==========================
Abstract styling
========================= */

/* Abstract section */
.abstract {
  background-color: rgba(63, 71, 110, 0.2);
  border-left: 4px solid var(--blue-light);
  border-radius: 0 12px 12px 0;

  padding: 15px 15px;
  margin-bottom: 60px;
  margin-top: 30px;
}


/* Abstract title */
.toc-section .abstract :is(h2, h3, h4, h5),
.abstract :is(h2, h3, h4, h5) {
  color: var(--blue-light);
  font-size: 1.25rem;
  padding: 10px 15px;
  font-weight: 700;
  border:none;
}

/* Abstract paragraph */
.abstract p {
  color: var(--white);
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: justify;

  padding: 5px 15px;

  margin-bottom: 0;
}

/*==========================
Box highlighting styling
========================= */
/* Highlighted scientific information */
.highlight-box {
  background:#101A29; 
  border: 1px solid #5C7098;
  border-left: 3px solid var(--yellow);
  border-radius: 12px;

  padding: 10px;

  box-shadow: 0 0 5px #7186AE;

  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  margin-bottom: 30px;
}

.highlight-box h5 {
  color: var(--yellow);
  font-weight: 700;
  margin-bottom: 20px;
}

.highlight-box ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.highlight-box li {
  margin-bottom: 15px;
}

.highlight-box li:last-child {
  margin-bottom: 0;
}

/* Subtle glow on hover */
.highlight-box:hover {
  box-shadow: 0 0 35px rgba(113, 134, 174, 0.25);
  border-color: #7186AE;
}

/*==============================
Table of contents styling
=============================== */
.toc-title {
  color: var(--white);
  font-weight: bold;
}

.table-of-contents {
  position: sticky;
  top: 100px;
  /* box-shadow: 0px 0px 10px pink */
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
}

.table-of-contents::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}


.toc-group {
  position: relative;
}

/* Individual TOC items */
.table-of-contents .list-group-item {
  position: relative;
  background-color: transparent;
  color: var(--white);
  border: none;
  cursor: pointer;
}

.toc-subsection.collapsing {
  transition: height 0.4s ease;
}

/* TOC Subsection styling */
.toc-subsection {
  margin-left: 20px;
  /* box-shadow: 0px 0px 10px green; */
}

.table-of-contents .toc-subitem {
  font-size: 0.9em; /* Slightly smaller font size for subitems */
  padding-top: 5px; /* Adjust padding for better spacing */
  padding-bottom: 5px;
}

/* Follow the current reading position on every page with a TOC. */
.toc-scroll-tracker > .list-group { position: relative; }
.toc-marker {
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  border-radius: 2px;
  background: var(--blue-light);
  pointer-events: none;
  z-index: 2;
  transition: transform .22s ease, height .22s ease;
}
.table-of-contents .list-group-item.toc-current { color: var(--blue-light); }
@media (prefers-reduced-motion: reduce) { .toc-marker { transition: none; } }

/*Paragraph spacing for sections and subsections in the main content area*/
.toc-section {
  margin-bottom: 50px;
  /* box-shadow: 0px 0px 10px cyan; */
}

section[id] {
  scroll-margin-top: 220px;
}

/* Main section headings */
.toc-section h2:not(.accordion-header) {
  color: var(--yellow);
  font-weight: 700;
  font-size: 2.5rem;

  margin-top: 3rem;
  margin-bottom: 2rem;

  text-decoration: none;
}

/* Short yellow underline */
.toc-section h2:not(.accordion-header)::after {
  content: "";
  display: block;
  width: 75px;
  height: 3px;
  background-color: var(--yellow);
  margin-top: 12px;
}

/* Subsection headings */
.toc-section h3 {
  color: var(--blue-light);
  font-weight: 600;
  font-size: 1.8rem;

  margin-top: 2.5rem;
  margin-bottom: 1rem;

  padding-left: 12px;
  border-left: 5px solid var(--blue-light);
}

/* Sub-subsection headings */
.toc-section h4 {
  color: #8FA8CB;
  font-weight: 600;
  font-size: 1.3rem;

  margin-top: 2rem;
  margin-bottom: 0.75rem;
  
  padding-left: 10px;
  border-left: 3px solid #8FA8CB;
}

/* Sub-subsection headings */
.toc-section h5 {
  color: #738DB4;
  font-weight: 600;
  font-size: 1.2rem;

  margin-top: 2rem;
  margin-bottom: 0.75rem;
  
  padding-left: 10px;
  border-left: 3px solid #738DB4;
}


/* Paragraphs */
.toc-section p {
  color: var(--white);
  font-size: 1.1rem;
  line-height: 1.8;
  

  margin-bottom: 1.5rem;
  text-align: left;
  text-indent: 0;
}

/* Links inside TOC sections */
.toc-section a {
  color: var(--blue-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Hover effect */
.toc-section a:hover {
  color: var(--yellow);
}
/*=======================================
Dropdown for pdf docs
========================================= */

/* Styling for the dot before the PDF dropdown */
.pdf-dropdown-dot {
  width: 5px;
  height: 5px;
  background-color: var(--orange);
  margin-right: 30px;
  flex-shrink: 0;
}

/* Styling for the PDF dropdown icon */
.pdf-dropdown-icon {
  display: inline-block;
  font-size: 0.7em;
  margin-left: auto;
  color: var(--white);
  transition: transform 0.3s ease;
}

/* Rotate the icon when the accordion is expanded */
.accordion-button[aria-expanded="true"] .pdf-dropdown-icon{
  transform: rotate(180deg);
}

/* Accordion container */
.accordion-item {
  background-color: var(--background-color);
  border: none;
  /* box-shadow: 0px 0px 10px cyan; */
}

/* Accordion title row */
.accordion-button {
  background-color: var(--background-color);
  color: var(--white);
}

/* Change color on hover and when expanded */
.accordion-button:hover,
.accordion-button[aria-expanded="true"] {
  color: var(--orange);
  text-shadow: 0px 0px 3px var(--yellow);
}

/* Keep the same color when the accordion is open */
.accordion-button:not(.collapsed) {
  background-color: var(--background-color);
}

/* Change the color of the PDF dropdown dot on hover and when expanded */
.accordion-button:hover .pdf-dropdown-dot,
.accordion-button[aria-expanded="true"] .pdf-dropdown-dot {
  box-shadow: 0px 0px 6px var(--yellow);
}

/* Change the color of the PDF dropdown icon on hover and when expanded */
.accordion-button:hover .pdf-dropdown-icon,
.accordion-button[aria-expanded="true"] .pdf-dropdown-icon {
  color: var(--orange);
}

/* Remove Bootstrap's blue focus shadow */
.accordion-button:focus {
  box-shadow: none;
}

/* Hide the default Bootstrap arrow */
.accordion-button::after {
  display: none; /* Hide the default Bootstrap arrow */
}

/*============================
Figure dropdown styling
============================= */
.figure-dropdown-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  background: transparent;
  border: none;
  color: var(--blue-light);

  padding: 0;
  margin-top: 15px;
  margin-bottom: 15px;

  font-size: inherit;
  font-weight: 500;
  cursor: pointer;

  transition: color 0.3s ease;
}

/* Hover effect */
.figure-dropdown-button:hover{
  color: var(--yellow);
  text-shadow: 0 0 8px rgba(255, 118, 0, 0.5);
}

/* Expanded state */
.figure-dropdown-button[aria-expanded="true"] {
  color: var(--blue-light);
}

/* Dropdown triangle */
.figure-dropdown-icon {
  display: inline-block;
  color: inherit;
  font-size: 0.7em;

  transition: transform 0.3s ease, color 0.3s ease;
}

/* Rotate triangle when expanded */
.figure-dropdown-button[aria-expanded="true"] .figure-dropdown-icon {
  transform: rotate(180deg);
}

/*============================
Paragraph dropdown styling
============================= */
.paragraph-dropdown-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 5px 7px;

  color: var(--white);
  background: transparent;

  border: 2px solid var(--blue);
  border-radius: 12px;

  font-size: 0.75rem;
  font-weight: 500;

  cursor: pointer;

  transition: all 0.35s ease;
}

/* Hover effect */
.paragraph-dropdown-button:hover {
  color: var(--yellow);

  background: rgba(63, 71, 110, 0.2);
  border-color: var(--yellow);

  box-shadow: 0 0 18px rgba(254, 167, 17, 0.15);

  transform: translateY(-2px);
}

/* When dropdown is open */
.paragraph-dropdown-button[aria-expanded="true"] {
  color: var(--blue-light);

  background: rgba(63, 71, 110, 0.2);
  border-color: var(--blue-light);

  box-shadow: 0 0 12px rgba(167, 199, 231, 0.15);
}

/*=======================================
Modal for pdfs
========================================= */
.modal-content {
  background-color: var(--background-color);
  color: var(--white);
  border: none;
  border-radius: 15px;
}

.modal-title {
  color: var(--white);
}

/* Style the close button to be white */
.modal-close-icon {
  filter: invert(1);
  color: var(--white);
}

.modal-backdrop.show {
  opacity: 0.8;
}

.modal-header {
  border-bottom: none; /* Remove the bottom border */
}

.modal-close-button {
  background: none; /* Remove background */
  margin-left: auto; /* Push the button to the right */
  border: none; /* Remove border */
  color: var(--white); /* Set text color to white */
  cursor: pointer; /* Change cursor to pointer on hover */
}

.modal-close-icon {
  font-size: 1.5rem; /* Increase the size of the icon */
  line-height: 1; /* Adjust line height for better alignment */
  color: var(--white); /* Ensure the icon is white */
}

/*==========================
References styling
=========================== */
/* References section styling, entire section */
.references-section {
  padding: 5px;
  text-align: center;
  /* box-shadow: 0px 0px 10px cyan; */
}

/* References button styling */
.references-button {
  color: var(--white);
  background-color: transparent;

  border: 1px solid var(--white);
  font-size: 15px;
  border-radius: 15px;

  text-align: center;

  display: inline-flex;
  align-items: center;
  gap: 5px; /* Space between text and icon */

  cursor: pointer;
  transition: 0.3s ease;
}

/* List of references styling */
.references-content {
  padding: 12px;
  color: white;
  /* box-shadow: 0px 0px 10px red; */
}

/* Citation numbers inside paragraphs */
.citation-link {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--white);
}

/* Hover effect */
.citation-link:hover {
  color: var(--orange);
  text-shadow: 0px 0px 3px var(--yellow);
  text-decoration-color: var(--orange);
}

.references-icon {
  display: inline-block; /* Align the icon with the text */
  font-size: 0.5em; /* Adjust the size of the icon */
  transition: transform 0.3s ease; /* Smooth transition for the rotation */
}

.references-button[aria-expanded="true"] .references-icon {
  transform: rotate(180deg); /* Rotate the icon when expanded */
}

.references-list {
  color:#C5CBD3;
  text-align: left;
  list-style-type: decimal;
  padding-left: 30px;
  margin: 20px 0;
}

.references-list li {
  padding-left: 10px;
  margin-bottom: 15px;
  line-height: 1.7;
  font-size: 15px;

  scroll-margin-top: 120px;
}

/* Reference numbers */
.references-list li::marker {
  color:#C5CBD3 ;
}

.references-content a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--white);
}

/* Reference links on hover */
.references-content a:hover {
  color: var(--orange);
  text-decoration: underline;
}

/* ===========================
Table styling
=========================== */

.gen-table {
  --bs-table-bg: var(--background-color);
  --bs-table-color: var(--white);
  --bs-table-border-color: var(--blue);

  --bs-table-hover-bg: #515b83;
  --bs-table-hover-color: var(--white);
}

.gen-table a {
  color: var(--blue-light);
  text-decoration: underline;
  text-decoration-color: var(--blue-light);
}

.gen-table th,
.gen-table td {
  border-width: 2px;
  vertical-align: middle;
}

.gen-table a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: var(--white);
}



/*=================================
Description Carousel
==================================*/


#descriptionCarousel {
  max-width: 750px;
  margin: 30px auto;
  padding-bottom: 35px;
}

#descriptionCarousel .carousel-indicators {
  bottom: 0;
  margin-bottom: 0;
}

#descriptionCarousel .carousel-item img {
  width: 100%;
  height: 400px;
  object-fit: contain;
}

#descriptionCarousel .figure-caption {
  margin-top: 15px;
}


#descriptionCarousel2 {
  max-width: 850px;
  margin: 30px auto;
  padding-bottom: 35px;
}

#descriptionCarousel2 .carousel-indicators {
  bottom: 0;
  margin-bottom: 0;
}

#descriptionCarousel2 .carousel-item img {
  width: 100%;
  height: 500px;
  object-fit: contain;
}

#descriptionCarousel2 .figure-caption {
  margin-top: 15px;
}


/*==========================
Footer color styling
========================= */

.footer-color {
  background: var(--background-color);
}

body {
  padding-top: var(--navbar-height); /* Ensure content is below the navbar */
  background-color: var(
    --background-color
  ); /* Set the background color for the entire page */
  color: var(--white); /* Set the default text color for the entire page */
}

.left-aligned {
  margin-left: auto;
}
.bg-dark {
  background-color: #343a40 !important;
}
.bg-hero {
  background-color: var(--background-color);
}

.figure-caption {
  color:#C5CBD3 !important;
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.6;
  text-align: center;
}

/* CALLOUT */
.bd-callout {
  padding: 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid #e9ecef;
  border-left-width: 0.25rem;
  border-radius: 0.25rem;
}
.bd-callout h4 {
  margin-bottom: 1.25rem;
}
.bd-callout p:last-child {
  margin-bottom: 0;
}
.bd-callout code {
  border-radius: 0.25rem;
}
.bd-callout + .bd-callout {
  margin-top: -0.25rem;
}
.bd-callout-info {
  border-left-color: #5bc0de;
}
.bd-callout-warning {
  border-left-color: #f0ad4e;
}
.bd-callout-danger {
  border-left-color: #d9534f;
}

/* footer */
footer a {
  color: white;
  font-weight: bold;
  text-decoration: none;
}
footer a:hover {
  color: white;
  text-decoration: underline;
}

/* Footer social accounts. */
.footer-social-links { display: flex; flex-direction: row; flex-wrap: wrap; gap: 1rem; }
.footer-social-links a { display: inline-flex; align-items: center; gap: .65rem; }
.footer-social-links img { width: 24px; height: 24px; object-fit: contain; }

@media (max-width: 575.98px) {
  .footer-brand { flex-wrap: wrap; }
}
