/* css styles */

/* Force full-width layout */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  box-sizing: border-box;
  padding-top: 4rem;
}

/* Ensure all elements respect box size (padding doesn't break layout) */
*, *::before, *::after {
  box-sizing: inherit;
}


body,
.page-columns,
.page-columns .content,
.container,
main.content,
.content > div,
.quarto-container,
.quarto-page,
.quarto-article {
  display: block !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 auto !important;
  margin-left: 0vw !important;
  margin-right: 0vw !important;
  margin-top: 0vh;
  box-sizing: border-box;
}

.page-team main.content {
  margin: 3vh 10vw; /* top/bottom: 3vh, sides: 10vw */
}

.column-margin {
  display: none !important;
}

body, .page-columns, .container, .content {
  background-color: transparent !important;
  line-height: 1.75;
  font-size: 1.10rem;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.container {
  margin-left: 0vw;
  margin-right: 0vw;
  padding: 0;
}

section {
  margin: 0vw;
  padding: 0;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../resources/images/title/00title.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.4; /* 👈 Set your desired opacity here */
  z-index: -1; /* Keeps image behind other content */
  background-color: rgba(255, 255, 255, 0.5); /* soft white overlay */
  background-blend-mode: overlay;
}

/* carousel styles */
.carousel {
  position: relative;
  margin-top: 0;
  width: 100%;
  height: 40vw;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;        /* Needed to position caption inside */
  width: 100%;
  height: 100%;              /* Inherit from carousel container */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  justify-content: center; /* center horizontally (optional) */
  align-items: center;     /* center vertically */
  transition: transform .5s ease;
}

.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);  /* Center horizontally & vertically */
  background-color: rgba(5, 0, 75, 0.75); /* Semi-transparent background */
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-align: center;
  font-size: 1.2rem;
  max-width: 80%;
}

.carousel-titlecaption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);  /* Center horizontally & vertically */
  background-color: rgba(5, 0, 75, 0.75); /* Semi-transparent background */
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-align: center;
  font-size: 1.4rem;
  max-width: 80%;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
  padding: 0 1rem;
  pointer-events: all;
}

.carousel-nav .prev {
  position: absolute;
  top: 50%;
  left: 1rem;                      /* Push to the left side */
  transform: translateY(-50%);
  font-size: 30px;
  color: white;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 0.2rem 1rem;
  border-radius: 50%;
  pointer-events: all;
  user-select: none;
  z-index: 10;
}

.carousel-nav .next {
  position: absolute;
  top: 50%;
  right: 1rem;                      /* Push to the right side */
  transform: translateY(-50%);
  font-size: 30px;
  color: white;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 0.2rem 1rem;
  border-radius: 50%;
  pointer-events: all;
  user-select: none;
  z-index: 10;
}

/* Custom margin */
.custom-margin {
  margin: 0vh 10vw;  /* top/bottom: 5% of viewport height, sides: 10% of viewport width */
  font-size: 1.20rem; /* Adjusted for better visibility */
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  color: #05014a;
}

/* Customize section title font sizes */
h1 {
  font-size: 2rem; /* top-level page title */
}

h2 {
  font-size: 1.5rem;   /* main section */
}

h3 {
  font-size: 1.2rem; /* subsection */
}

h4 {
  font-size: 1.2rem;
}

/* Optional: consistent spacing */
h1, h2, h3, h4 {
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  line-height: 1.3;
}

/* Fine-tune margins for mobile screens */
@media (max-width: 768px) {
  body {
    margin-left: 2vw;
    margin-right: 2vw;
  }

  section {
    margin-top: 2vw;
    margin-bottom: 2vw;
  }

  h1, h2, h3, h4, h5, h6 {
    margin-top: 1.5vw;
    margin-bottom: 1.5vw;
  }

  p {
    margin-bottom: 1vw;
  }

  footer {
    margin-top: 2vw;
    z-index: 1000;
  }
}