/* --- Global Styles & Variables --- */
:root {
    /* Dark Mode Palette */
    --background-color: #1E3C3C; /* Deep Desaturated Teal */
    --surface-color: #2A4F4F;    /* Secondary Background */
    --light-color: #E0E0E0;      /* Main Text Color */
    --dark-color: #E0E0E0;       /* Main Text Color (replacing old dark for general text) */
    --primary-color: #F4B942;    /* Accent/Link Color */
    --primary-color-dark: #E0A83D; /* Darker Accent for hover states */
    --secondary-color: #7EBDBD;  /* Lighter Accent */
    --border-color: #4A7C7C;     /* Desaturated Accent for borders */
    --tertiary-accent: #508C8C;  /* Desaturated Accent variant */
/* New Theme Palette (aligned with above) */
    --theme-background: #1E3C3C; /* Primary Background */
    --theme-text-primary: #E0E0E0; /* Main Text Color */
    --theme-accent-primary: #5D9C9C; /* Accent/Link Color */
    --theme-accent-secondary: #7EBDBD; /* Lighter Accent */
    --theme-accent-tertiary: #508C8C; /* Desaturated Accent variant */
    --font-family: 'Nunito', sans-serif;
    --container-width: 1140px;
    --header-height: 70px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    margin: 0; /* Explicit reset */
    padding: 0; /* Explicit reset */
    background-color: #1E3C3C;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: #E0E0E0; /* Main Text Color */
    background-color: #1E3C3C;
    margin: 0; /* Explicit reset */
}

body.modal-open {
    overflow: hidden; /* Prevent background scrolling when modal is open */
}


img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #5D9C9C; /* Accent/Link Color */
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #4A8C8C; /* Darker Accent/Link Color */
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.75rem;
    line-height: 1.3;
    font-weight: 700;
    color: #FFFFFF; /* Heading Text Color */
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: 1rem; }

ul {
    list-style: none;
}

/* Screen Reader Only Class */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* General page title styling (if not already defined) */
.page-title {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  color: #FFFFFF; /* Heading Text Color */
}
/* Robust Alternating Section Backgrounds */
/* Targets direct children of main or article that are sections or divs */
/* This allows for mixed content (e.g., scripts, other utility divs)
   without breaking the odd/even striping of visible content blocks. */
main > .page-content-section:nth-child(odd) {
    background-color: #1E3C3C; /* Primary */
}

main > .page-content-section:nth-child(even) {
    background-color: #2A4F4F; /* Secondary */
}