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

:root {
    --color-primary: #0078d4;
    --color-primary-dark: #005a9e;
    --color-text: #1a1a2e;
    --color-text-light: #555;
    --color-bg: #ffffff;
    --color-bg-alt: #f5f7fa;
    --color-border: #e0e4e8;
    --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --max-width: 1200px;
    --radius: 8px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.site-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
}

/* Main content */
.site-main {
    flex: 1;
    padding: 3rem 0;
}

/* Content elements */
.ce-bodytext {
    margin-bottom: 1.5rem;
}

.ce-bodytext p {
    margin-bottom: 1rem;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: var(--color-text);
}

h2 {
    font-size: 2rem;
    color: var(--color-text);
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

a {
    color: var(--color-primary);
}

a:hover {
    color: var(--color-primary-dark);
}

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

/* Hero-style header text */
.frame-type-header .ce-header {
    text-align: center;
    padding: 3rem 0;
}

/* Content frames */
.frame {
    margin-bottom: 2rem;
}

.frame-default {
    padding: 1rem 0;
}

.frame-ruler-before {
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
}

/* Text with image */
.ce-textpic,
.ce-image {
    margin-bottom: 2rem;
}

.ce-gallery {
    margin-bottom: 1.5rem;
}

/* Bullet list styling */
ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.3rem;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

th, td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    text-align: left;
}

th {
    background: var(--color-bg-alt);
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: var(--color-text);
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .container {
        padding: 0 1rem;
    }
}
