/* ==============================================
   Modernized RHQ RMP Stylesheet
   Based on original Project Seven CSS
   Enhanced for accessibility, performance and modern browsers
   ============================================== */

:root {
    --primary-color: #222;
    --secondary-color: #6E6D68;
    --text-color: #000;
    --light-text: #FFF;
    --link-color: #0066CC;
    --link-hover: #C30;
    --sidebar-bg: linear-gradient(to bottom, #FFF, #AAA);
    --menu-bg: #333;
    --footer-bg: #222;
    --max-width: 1200px;
    --content-width: 56%;
    --sidebar-width: 22%;
    --border-radius: 0.5rem;
    --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-color);
    background-color: #FFFFFF;
    line-height: 1.6;
    margin: 20px 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Layout Containers */
.content-wrapper {
    width: min(98%, var(--max-width));
    margin: 0 auto;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: #FFF;
}

.columns-wrapper {
    display: flex;
    flex-wrap: wrap;
    position: relative;
}
/* Cookie Banner Styles */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #222;
  color: white;
  padding: 1rem;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.cookie-content p {
  flex: 1 1 300px;
  margin: 0;
}

.cookie-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.5rem 1rem;
}
/* Header Styles */
.masthead {
    padding: 0;
    text-align: left;
    background-color: var(--primary-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.masthead .logo {
    position: relative;
    padding: 1.5rem;
}

.masthead h1, 
.masthead h4 {
    color: var(--light-text);
    font-weight: 400;
    letter-spacing: 0.1em;
    margin: 0;
}

.masthead h1 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    padding: 1rem;
}

.masthead h4 {
    font-size: 1rem;
    padding: 1rem;
}
.masthead h2 {
    color:#FFFFFF
}

.masthead .banner {
    position: relative;
    z-index: 20;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

.masthead .banner img {
    display: block;
    width: 100%;
    height: auto;
}

/* Main Content Areas */
.main-content {
    width: var(--content-width);
    padding: 1.5rem;
    order: 2;
    border-right: 1px solid var(--primary-color);
    border-left: 1px solid var(--primary-color);
}

.sidebar {
    width: var(--sidebar-width);
    padding: 1.5rem;
    order: 1;
    background: var(--sidebar-bg);
}

.sidebar2 {
    width: var(--sidebar-width);
    padding: 1.5rem;
    order: 3;
    background: var(--sidebar-bg);
}

/* Typography */
h1, h2, h3, h4 {
    margin: 1.5rem 0 0.5rem;
    line-height: 1.2;
    font-weight: 500;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

.page-topper {
    margin-top: 0;
}

.center {
    text-align: center;
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover,
a:focus {
    color: var(--link-hover);
    text-decoration: underline;
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.sidebar a,
.sidebar2 a {
    color: #0059B3;
}

.footer a {
    color: #8C8C8C;
}

.footer a:hover,
.footer a:focus {
    color: var(--light-text);
}

/* Lists */
ul, ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Navigation */
.menutop-wrapper {
    background-color: var(--secondary-color);
    border-bottom: 1px solid var(--light-text);
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
    position: relative;
    z-index: 10;
    padding: 0.5rem;
}

.menutop {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menutop li {
    flex: 1 0 auto;
    max-width: max-content;
}

.menutop a {
    display: block;
    color: #CCC;
    padding: 0.75rem 1rem;
    background-color: var(--menu-bg);
    border-radius: var(--border-radius);
    box-shadow: inset 0 12px 6px rgba(255,255,255,0.15), 0 0 10px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.5);
    transition: var(--transition);
}

.menutop a:hover,
.menutop a:focus {
    color: var(--light-text);
    background-color: rgba(51,51,51,0.2);
    text-decoration: none;
}

/* Footer */
.footer {
    background-color: var(--footer-bg);
    box-shadow: inset 0 16px 2px rgba(255,255,255,0.025);
    border-top: 1px solid var(--text-color);
    padding: 1.5rem;
    font-size: 0.875rem;
    color: #8C8C8C;
    text-align: center;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.footer p {
    margin: 0.5rem 0;
}

.footer .copyright {
    text-transform: uppercase;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .main-content,
    .sidebar,
    .sidebar2 {
        width: 100%;
        order: initial;
    }
    
    .main-content {
        border-right: none;
        border-left: none;
        border-bottom: 1px solid var(--primary-color);
    }
    
    .menutop {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .menutop li {
        max-width: 100%;
    }
}

@media print {
    .menutop-wrapper,
    .sidebar,
    .sidebar2 {
        display: none;
    }
    
    .main-content {
        width: 100%;
        border: none;
    }
    
    a {
        color: var(--text-color);
        text-decoration: underline;
    }
}

/* Accessibility Improvements */
.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;
}

:focus-visible {
    outline: 2px solid var(--link-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: none;
    }
    
    .footer {
        background: none;
        color: #000;
        border-top: 1pt solid #000;
    }
    
    .footer a {
        color: #000;
    }
}