/**
 * Modernized and Consolidated Stylesheet
 *
 * Description: A clean, warm, and professional stylesheet combining and updating
 * styles from global.css and theme.css.
 * Version: 1.5
 *
 * Fonts:
 * - Headers: Montserrat
 * - Body: Nunito Sans
 *
 * Changelog:
 * - 1.1: Removed all instances of `text-transform: uppercase`.
 * - 1.2: Explicitly set `text-transform: none` on headers.
 * - 1.3: Prevented nav items from wrapping. Removed uppercase from dropdown items.
 * - 1.4: Corrected nav selectors to match provided HTML, fixing flexbox wrapping and dropdown capitalization.
 * - 1.5: Fixed dropdown text color for readability, reduced font size, and allowed text wrapping to prevent overflow.
 */

/*------------------------------------------------------------------
[Table of contents]

1.  Font Imports
2.  CSS Reset
3.  Root Variables
    - Colors
    - Typography
    - UI Elements
4.  Base Styles
    - Body, headings, paragraphs, links, lists
5.  Layout
    - Container, grid, alignment
6.  Components
    - Buttons, cards, forms, navigation, modals, etc.
7.  Utility Classes
    - Margins, padding, borders, etc.
------------------------------------------------------------------*/

/*=================================================================
  1. Font Imports
=================================================================*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Nunito+Sans:wght@400;700&display=swap');

/*=================================================================
  2. CSS Reset
=================================================================*/
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/*=================================================================
  3. Root Variables
=================================================================*/
:root {
  /* Colors */
  --color-primary: #30333f;
  --color-secondary: #595A5E;
  --color-accent: #96A5CD;
  --color-background: #FAFBFF;
  --color-surface: #FFFFFF;
  --color-text: #222222;
  --color-text-muted: #6c757d;
  --color-border: #E3E7F2;

  /* Typography */
  --font-family-sans-serif: 'Nunito Sans', sans-serif;
  --font-family-serif: 'Montserrat', serif;
  --font-size-base: 1rem;
  --font-weight-normal: 400;
  --font-weight-bold: 700;
  --line-height-base: 1.6;

  /* UI Elements */
  --border-radius: 0.25rem;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/*=================================================================
  4. Base Styles
=================================================================*/
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-sans-serif);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-background);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-serif);
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  text-transform: none; /* Ensures headers respect case from HTML */
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

/*=================================================================
  5. Layout
=================================================================*/
.uk-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.uk-grid {
  display: flex;
  flex-wrap: wrap;
  margin: -15px;
}

.uk-grid > * {
  padding: 15px;
}

/*=================================================================
  6. Components
=================================================================*/

/* Buttons */
.tm-button, .uk-button {
  display: inline-block;
  font-family: var(--font-family-serif);
  font-weight: var(--font-weight-bold);
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
  background-color: var(--color-secondary);
  color: var(--color-background);
  text-transform: none;
}

.tm-button:hover, .uk-button:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
  text-decoration: none;
}

/* Forms */
.uk-form input,
.uk-form select,
.uk-form textarea {
  display: block;
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.uk-form input:focus,
.uk-form select:focus,
.uk-form textarea:focus {
  border-color: var(--color-accent);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(150, 165, 205, 0.25);
}

/* Navigation */
#site-nav {
  background-color: var(--color-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; /* Required for the dropdown search */
}

#site-nav > .dropdown-menus {
  display: flex;
  flex-wrap: nowrap; /* This is key to prevent wrapping of menu items */
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Style for TOP-LEVEL links in the nav */
#site-nav > .dropdown-menus > li > a {
  display: block;
  padding: 1.5rem 1rem;
  color: var(--color-background);
  text-decoration: none;
  text-transform: none;
  font-size: 1rem;
  font-weight: var(--font-weight-bold);
  transition: color 0.3s ease, background-color 0.3s ease;
  white-space: nowrap;
}

/* Style for the dropdown container itself */
.dropdown-menus ul {
  background-color: #a3add4; /* Light purple from original theme */
  box-shadow: var(--box-shadow);
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  min-width: 250px; /* Give dropdowns a bit more space */
}

/* Style for NESTED (dropdown) links */
#site-nav .dropdown-menus ul a {
  padding: 0.5rem 1.5rem; /* Adjusted padding for smaller font */
  color: var(--color-primary); /* Dark text for readability */
  font-size: 0.9rem; /* Smaller font */
  font-weight: var(--font-weight-bold);
  white-space: normal; /* Allow text to wrap */
  text-transform: none;
  display: block;
  text-decoration: none;
  transition: color 0.3s ease, background-color 0.3s ease;
}

/* Hover/active state ONLY for top-level menu items */
#site-nav > .dropdown-menus > li > a:hover,
#site-nav > .dropdown-menus > li.uk-active > a {
  color: var(--color-accent);
  background-color: var(--color-secondary);
}

/* Hover state for nested dropdowns */
#site-nav .dropdown-menus ul a:hover {
  background-color: var(--color-secondary);
  color: var(--color-background);
}


/* The search icon link is a direct child of #site-nav */
#site-nav > a#rsa-search-button {
    color: var(--color-background);
    padding: 0 1.5rem;
    font-size: 1.2rem;
    text-decoration: none;
    flex-shrink: 0; /* Prevent icon from shrinking and wrapping */
}

#site-nav > a#rsa-search-button:hover {
    color: var(--color-accent);
}


/* Cards (Promo Boxes) */
.promo-box {
  background-color: var(--color-surface);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.promo-box h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background-color: var(--color-primary);
  color: #aab6d8;
  padding: 2rem 0;
  text-align: center;
}

footer a {
  color: var(--color-accent);
}

footer a:hover {
  color: var(--color-background);
}

/*=================================================================
  7. Utility Classes
=================================================================*/
.m-0{margin:0 !important}.m-1{margin:0.25rem !important}.m-2{margin:0.5rem !important}.m-3{margin:1rem !important}.m-4{margin:1.5rem !important}.m-5{margin:3rem !important}.m-auto{margin:auto !important}.mx-0{margin-right:0 !important;margin-left:0 !important}.mx-1{margin-right:0.25rem !important;margin-left:0.25rem !important}.mx-2{margin-right:0.5rem !important;margin-left:0.5rem !important}.mx-3{margin-right:1rem !important;margin-left:1rem !important}.mx-4{margin-right:1.5rem !important;margin-left:1.5rem !important}.mx-5{margin-right:3rem !important;margin-left:3rem !important}.mx-auto{margin-right:auto !important;margin-left:auto !important}.my-0{margin-top:0 !important;margin-bottom:0 !important}.my-1{margin-top:0.25rem !important;margin-bottom:0.25rem !important}.my-2{margin-top:0.5rem !important;margin-bottom:0.5rem !important}.my-3{margin-top:1rem !important;margin-bottom:1rem !important}.my-4{margin-top:1.5rem !important;margin-bottom:1.5rem !important}.my-5{margin-top:3rem !important;margin-bottom:3rem !important}.my-auto{margin-top:auto !important;margin-bottom:auto !important}.mt