body {
  font-family: 'Source Serif Pro', Georgia, 'Times New Roman', Times, serif;
  font-weight: 400;
}

header {
  font-family: Yantramanav, Arial, Helvetica, sans-serif;
}

.body-bgg {
  font-size: larger;
  background-image: linear-gradient(rgba(255, 255, 255, 0.8),
  rgb(255, 255, 255, 0.9)),
    url(/static/images/statistics2.jpg);
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  min-height: 100vh;
}

.body-projects {
  background-image: linear-gradient(rgba(255, 255, 255, 0.8),
  rgb(255, 255, 255, 0.9)),
    url(/static/images/holz4.jpg);
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  min-height: 100vh;
}

.card-img-top.with-margin {
  margin: 10px;
  width: 90%;
  margin-bottom: 45px;
  margin-top: 45px;
}

.img-text {
  margin-top: 1.5em;
  margin-bottom: 2em;
  text-align: center;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  font-family: Yantramanav, Heebo, Assistant, Arial, Helvetica, sans-serif;
  margin-bottom: .5rem;
  font-weight: 600;
  line-height: 1.2;
}

div.card-body h1  {
  margin-top: 3rem;
}

div.card-body h2  {
  margin-top: 2.5rem;
}

div.card-body h3  {
  margin-top: 2rem;
}

.intro-block.active .intro-block-inner, .intro-block:hover .intro-block-inner {
  opacity: 1;
}

.intro-block, .intro-block:active, .intro-block:focus, .intro-block:hover {
  color: #fff;
  text-decoration: none;
}

.intro-block {
  background-attachment: scroll;
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: cover;
  display: block;
  height: 500px;
  margin: 10px;
  overflow: hidden;
  padding: 20px;
  position: relative;
  text-align: center;
}

.intro-block-inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-end;
  position: relative;
  transition: all .25s ease-in-out;
  width: 100%;
  color: #fff;
  text-decoration: none;
}

.intro-block-header {
  background-color: rgba(128, 128, 128, 0.69); 
  padding:0.2em; 
  border-radius: 5px;
}

.row-milo {
  --bs-gutter-x: 20px;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  margin-left: calc(var(--bs-gutter-x)*-.5);
  margin-right: calc(var(--bs-gutter-x)*-.5);
  margin-top: calc(var(--bs-gutter-y)*-1);
}

/* Navbar Start */

.sub-navbar {
  font-size: 14px;
}

.nav-link {
  color: rgb(255, 255, 255);
  display: block;
  padding: .5rem 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  text-decoration: none;
  transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out;
}

.nav-item.active {
  text-decoration: underline;
  text-decoration-color: #fff;
}

a.navbar-brand {
  color: #fff;
}

a.navbar-brand:hover {
  color: #fff;
}

.navbar {
  font-family: Yantramanav, Arial, Helvetica, sans-serif;
  font-weight: 400;
  background-color: rgb(33, 38, 48);
  padding: 5px 5px;
}

.nav-link:hover {
  color: rgb(255, 255, 255);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.navbar-nav {
  font-size: 16px;
}

.article-nav {
  font-family: Yantramanav, Arial, Helvetica, sans-serif;
  font-weight: 400;
  border: 1px solid rgba(0,0,0,.125);
  border-radius: .25rem;
  background-color: white;
  margin-top: 10px;
}
.article-nav .nav-link {
  color: black;
}

.article-nav .navbar-nav {
  margin: auto;
}

.article-nav .nav-link:hover {
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.5);
}


/* Navbar End */

/* Footer Start */

.site-footer {
  font-family: Yantramanav, Arial, Helvetica, sans-serif;
  background-color: rgb(33, 38, 48);
  font-size: 16px;
}

.site-footer .copy {
  border-top: 1px solid white;
  color: white;
  font-size: 90%;
  margin: 0 auto;
  max-width: 800px;
  padding-bottom: 20px;
  padding-top: 20px;
  text-align: center;
  text-transform: uppercase;
}

.site-footer .nav-link {
  border-right: 1px solid #ffffff;
  color: #ffffff;
  margin-bottom: 20px;
  margin-top: 20px;
  padding-bottom: 2px;
  padding-top: 2px;
  text-transform: uppercase;
}


.site-footer .nav-item:last-child .nav-link {
  border-right: 0;
}

/* Footer End */

/* Table Start */

.table-div {
  padding: 0.2em;
  overflow-x:auto
}

table {
	width:100%;
  font-size: 14px;
  /* margin-top: 1em;
  margin-bottom: 1em; */
  
}

tr {
	width:100%;
	padding:(1px * 1.5) 0;
}

td {
  box-sizing: border-box;
  flex-grow: 1;
  padding: 0.4em 1.2em;
  overflow: hidden;
  list-style-type: none;
  outline: 1px solid #ddd;
  text-align: center;
}

/* Table End */

.no-hover-link a {
  color: black;
  text-decoration: none;
}

.no-hover-link a:hover {
  color: black;
  text-decoration: none;
}

article a {
  color: #009990;
  text-decoration: underline;
}

article a:hover {
  color: #009990;
  text-decoration: none;
}

.d-flex.align-items-center {
  height: 100%;
}

.text-center {
  margin: auto;
}

p.article-text {
  margin-bottom: 32px
}

.article-image {
  overflow: hidden;
  max-height: 500px;
  display: flex;
  align-items: center;
  margin-bottom: 1.5em;
}

.article-table {
  margin-bottom: 1.5em;
}

.name-page-div {
  border-bottom: 3px solid rgb(33, 38, 48);
  margin-left: -1vw; 
  margin-right: -1vw; 
  margin-bottom: 50px;
}

.name-page-header{
  margin-bottom: 50px; 
  margin-block-start: 0.67em;
  margin-block-end: 0.67em; 
  margin-left: 30px;
  color: rgb(33, 38, 48);
}

p.article-description {
  font-family: Yantramanav, Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 21px;
  margin-bottom: 3em;
}

.card-header a:hover {
  color: black;
  text-decoration: none;
}

.material-icons-outlined {
  color: white;
  font-weight: 100;
  font-size: 12px !important;
}

.card-header{
  background-color: white;
}

/* Pagination Styles */

.pagination-controls {
  font-family: Yantramanav, Arial, Helvetica, sans-serif;
  font-size: 14px;
}

.pagination-info {
  color: #555;
  font-weight: 500;
}

.pagination {
  margin-bottom: 0;
}

.pagination .page-item {
  margin: 0 2px;
}

.pagination .page-link {
  background-color: #fff;
  border: 1px solid #ddd;
  color: rgb(33, 38, 48);
  padding: 8px 12px;
  text-decoration: none;
  border-radius: 4px;
  font-family: Yantramanav, Arial, Helvetica, sans-serif;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  min-width: 40px;
  text-align: center;
}

.pagination .page-link:hover {
  background-color: #f8f9fa;
  border-color: rgb(33, 38, 48);
  color: rgb(33, 38, 48);
  text-decoration: none;
}

.pagination .page-item.active .page-link {
  background-color: rgb(33, 38, 48);
  border-color: rgb(33, 38, 48);
  color: #fff;
  font-weight: 600;
}

.pagination .page-item.active .page-link:hover {
  background-color: rgb(33, 38, 48);
  border-color: rgb(33, 38, 48);
  color: #fff;
}

.pagination .page-item.disabled .page-link {
  background-color: #fff;
  border-color: #e9ecef;
  color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.pagination .page-item.disabled .page-link:hover {
  background-color: #fff;
  border-color: #e9ecef;
  color: #6c757d;
}

/* Search controls styling */
.search-controls .form-control {
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: Yantramanav, Arial, Helvetica, sans-serif;
}

.search-controls .form-control:focus {
  border-color: rgb(33, 38, 48);
  box-shadow: 0 0 0 0.2rem rgba(33, 38, 48, 0.25);
}

.search-controls .btn-outline-secondary {
  border-color: #ddd;
  color: #6c757d;
}

.search-controls .btn-outline-secondary:hover {
  background-color: rgb(33, 38, 48);
  border-color: rgb(33, 38, 48);
  color: #fff;
}

.search-results-info {
  color: #555;
  font-style: italic;
  text-align: right;
}

/* Figure and Table Caption Styling */
.figure-caption {
  margin-top: 1rem;
  margin-bottom: 2rem;
  padding: 0.75rem 1rem;
  background-color: #f8f9fa;
  border-left: 4px solid #4f695f;
  border-radius: 0 4px 4px 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.figure-caption p {
  margin: 0;
  color: #495057;
}

.figure-caption strong {
  color: #212529;
  font-weight: 600;
}

/* Collapsible Figure/Table Styling */
.collapsible-container {
  border: 1px solid #e9ecef;
  border-radius: 6px;
  margin: 1.5rem 0;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.collapsible-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #e9ecef;
  padding: 1rem 1.25rem;
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  min-height: fit-content;
}

.collapsible-header:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.collapsible-header.collapsed {
  border-bottom: none;
  background: linear-gradient(135deg, #f1f3f4 0%, #e2e6ea 100%);
}

.collapsible-header.collapsed:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.collapsible-header-content {
  flex: 1;
  min-width: 0; /* Allows text to wrap properly */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.collapsible-title {
  font-weight: 700;
  color: #2c3e50;
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  padding: 0;
}

.collapsible-caption {
  font-size: 0.9rem;
  color: #495057;
  line-height: 1.4;
  margin: 0;
  font-style: italic;
}

.collapsible-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
  align-self: flex-end;
  margin-top: auto;
}

.collapsible-controls-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}



.collapsible-toggle {
  font-size: 1.4rem;
  font-weight: bold;
  color: #4f695f;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(79, 105, 95, 0.1);
  transform-origin: center;
  order: 1;
}

.collapsible-header:not(.collapsed) .collapsible-toggle {
  transform: rotate(90deg);
  background-color: rgba(79, 105, 95, 0.2);
  box-shadow: 0 2px 4px rgba(79, 105, 95, 0.2);
}

.collapsible-header.collapsed .collapsible-toggle {
  transform: rotate(0deg);
  background-color: rgba(79, 105, 95, 0.08);
}

.collapsible-hint {
  font-size: 0.75rem;
  color: #6c757d;
  font-style: italic;
  text-align: right;
  margin: 0;
  opacity: 0.8;
  white-space: nowrap;
  order: 2;
}

.collapsible-content {
  padding: 1.25rem;
  background-color: #fff;
  overflow: hidden;
  max-height: 2000px; /* Large initial value for expanded state */
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.collapsible-content.collapsed {
  max-height: 0;
  opacity: 0;
  transform: translateY(-20px);
  padding-top: 0;
  padding-bottom: 0;
}

/* Adjust figure caption for collapsible content */
.collapsible-content .figure-caption {
  margin-top: 1.5rem;
  margin-bottom: 0;
  background-color: #f1f3f4;
  border-left: 4px solid #4f695f;
}

/* Responsive design for collapsible containers */
@media (max-width: 768px) {
  .collapsible-header {
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .collapsible-header-content {
    width: 100%;
  }
  
  .collapsible-controls {
    align-self: flex-end;
    gap: 0.5rem;
  }
  
  .collapsible-controls-row {
    gap: 0.75rem;
  }
  
  .collapsible-title {
    font-size: 1rem;
  }
  
  .collapsible-caption {
    font-size: 0.85rem;
  }
  
  .collapsible-content {
    padding: 1rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .collapsible-container {
    margin: 1rem 0;
  }
  
  .collapsible-header {
    padding: 0.5rem 0.75rem;
  }
  
  .collapsible-title {
    font-size: 0.95rem;
  }
  
  .collapsible-caption {
    font-size: 0.8rem;
  }
  
  .collapsible-hint {
    font-size: 0.7rem;
  }
  
  .collapsible-content {
    padding: 0.75rem 0.5rem;
  }
}



/* Treemap Legend Styling */
.treemap-legend {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 1rem;
  margin-top: 1rem;
}

.treemap-legend h5 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #495057;
}

.treemap-legend .legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.treemap-legend .legend-item:last-child {
  margin-bottom: 0;
}

/* Map Legend General Styling */
.map-legend {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 1rem;
  margin-top: 1rem;
}
