:root {
    --primary-text: #333333;
    --background-light: #f4f4f9;
    --section-bg: #ffffff;
    --nav-bg: #1a1a1a;
    --nav-hover: #444444;
    --accent-red: #E40303;
    --accent-blue: #24408E;
    --accent-yellow: #FFED00;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-light);
    color: var(--primary-text);
    line-height: 1.6;
}

/* Header with Pride Gradient */
header {
    background: linear-gradient(to right, #E40303, #FF8C00, #FFED00, #008026, #24408E, #750787, #FFFFFF, #FFAFC8, #74D7EE, #613915, #000000);
    padding: 3rem 1rem;
    text-align: center;
    color: white;
    border-bottom: 4px solid var(--nav-bg);
}

header h1 {
    display: inline-block;
    background: rgba(0, 0, 0, 0.75);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 2.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Sticky Navigation */
nav {
    background-color: var(--nav-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

nav a {
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: var(--nav-hover);
    color: var(--accent-yellow);
}

/* Main Content Structure */
main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    background-color: var(--section-bg);
    margin-bottom: 2rem;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    scroll-margin-top: 4rem; /* Offset for sticky nav */
}

h2 {
    color: var(--primary-text);
    font-size: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-text);
}

/* links */
a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}
a:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

/* Lists */
ul {
    list-style-type: none;
    padding-left: 0;
}

ul li {
    background: var(--background-light);
    margin-bottom: 0.75rem;
    padding: 1rem;
    border-left: 4px solid var(--accent-blue);
    border-radius: 4px;
}

ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
}

ol li::marker {
    color: var(--text-primary);
    font-weight: bold;
}

ol li {
    background: var(--background-light);
    margin-bottom: 0.75rem;
    padding: 1rem;
    border-left: 4px solid var(--accent-red);
    border-radius: 4px;
}

/* Footer */
footer {
    background-color: var(--nav-bg);
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.8rem;
        padding: 1rem;
    }
    nav {
        flex-direction: column;
    }
    nav a {
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid #333;
    }
}