/* Title slide header styling: white text on full-width green background */
.reveal section:first-of-type h1,
.reveal section:first-of-type h2 {
  background-color: #093;  /* LMU green background color for the title header */
  color: white;               /* White text color for contrast against the green background */
  padding: 0.05em 1em;         /* Padding for top/bottom (0.3em) and left/right (1em) to give spacing inside the header */
  margin: 0 -1em;             /* Negative left/right margins to extend the header's background beyond the default padding */
  width: calc(100% + 2em);    /* Expands the width of the header to cover the full slide width (including extra margin) */
  border-radius: 10px;        /* Ensures the header background has sharp corners (no rounded edges) */
  display: block;             /* Makes the header elements (h1, h2) behave as block elements, allowing full width */
  text-align: center;         /* Centers the text inside the header (h1 and h2) */
  box-sizing: border-box;     /* Ensures that padding is included within the width/height of the element, not added to it */
}

/* Styling for non-title slide headers: green background, white text, left-aligned */
.reveal .slides section:not(:first-of-type) h1,
.reveal .slides section:not(:first-of-type) h2,
.reveal .slides section:not(:first-of-type) h3,
.reveal .slides section:not(:first-of-type) h4 {
  background-color: #093;  /* LMU green background for the header */
  color: white;               /* Sets the text color to white for contrast against the green background */
  padding: 0.05em 1em;         /* Adds padding: 0.3em for top and bottom, 1em for left and right to give spacing around the header text */
  margin: 0;                  /* Removes margin, ensuring the background color stretches fully across the width of the slide */
  width: 100%;                /* Makes the background color cover the full width of the slide */
  text-align: left;           /* Aligns the text to the left inside the header box */
  border-radius: 10px;
  border-bottom: 2px solid #D3D3D3;  /* Adds a grey horizontal line (light grey) below the header */
  box-sizing: border-box;     /* Ensures that padding is included in the width calculation, so the header maintains the correct dimensions */
}

/* Adjust header font size on non-title slides */
.reveal .slides section:not(:first-of-type) h1,
.reveal .slides section:not(:first-of-type) h2,
.reveal .slides section:not(:first-of-type) h3,
.reveal .slides section:not(:first-of-type) h4 {
  font-size: 1.6em;  /* Adjust as needed, default h1 is ~2em+ */
}

/* Set font size on the list container only */
.reveal .slides section:not(:first-of-type) ul,
.reveal .slides section:not(:first-of-type) ol {
  font-size: 0.8em;              /* Sets font size for both list bullets and text */
  list-style-position: outside;  /* Ensures bullets are rendered outside the text block */
}

/* Reset font-size inheritance inside list items to avoid nesting issues */
.reveal .slides section:not(:first-of-type) li {
  font-size: inherit;            /* Forces li text to match parent font size exactly */
}

/* Ensure bolded text is both bold and dark blue */
.reveal strong,
.reveal b {
  color: darkblue;        /* Set text color */
  font-weight: bold;      /* Ensure bold styling is applied */
}
