:root {
    /* Colors */
    --primary-color: #4a90e2;
    --secondary-color: #34495e;
    --success-color: #2ecc71;
    --warning-color: #f1c40f;
    --danger-color: #e74c3c;
    --background-color: #f5f5f5;
    --text-color: #333;
    --text-light: #666;
    --border-color: #ddd;
    
    /* Typography */
    --font-family: 'Arial', sans-serif;
    --font-size-xs: 0.5625rem;
    --font-size-sm: 0.65625rem;
    --font-size-md: 0.75rem;
    --font-size-lg: 0.84375rem;
    --font-size-xl: 0.9375rem;
    --font-size-2xl: 1.125rem;
    --font-size-3xl: 1.40625rem;
    
    /* Spacing */
    --spacing-xs: 0.1875rem;
    --spacing-sm: 0.375rem;
    --spacing-md: 0.75rem;
    --spacing-lg: 1.125rem;
    --spacing-xl: 1.5rem;
    
    /* Layout */
    --header-height: 45px;
    --footer-height: 75px;
    --sidebar-width: 225px;
    --border-radius: 6px;
    --box-shadow: 0 1.5px 3px rgba(0, 0, 0, 0.1);
}

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

/* Base Styles */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Typography */
h1 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-lg);
    color: var(--text-color);
}

h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

p {
    font-size: var(--font-size-md);
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
}

/* Form Elements */
input, textarea, select {
    font-family: var(--font-family);
    font-size: var(--font-size-md);
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    width: 100%;
    margin-bottom: var(--spacing-md);
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* Buttons */
.button {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-md);
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background-color: var(--primary-color);
    color: white;
}

.button-primary:hover {
    background-color: #357abd;
}

.button-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.button-secondary:hover {
    background-color: #2c3e50;
}

/* Layout Components */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-lg);
    height: 60px;
    background: var(--background-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.home-button {
    background-color: var(--primary-color);
    color: white;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
}

.header-ad {
    margin-left: auto;
    width: 728px;
    height: 90%;
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.layout {
    display: flex;
    min-height: 100vh;
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height);
    width: 100%;
}

.main-content {
    flex: 1;
    padding: var(--spacing-xl);
    width: 100%;
    margin: 0;
    background-color: white;
    box-shadow: var(--box-shadow);
    border-radius: 0;
}

.sidebar {
    width: var(--sidebar-width);
    padding: var(--spacing-xl);
}

.sidebar-ad {
    width: 100%;
    height: 600px;
    background-color: var(--background-color);
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-content {
    flex: 1;
    padding: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--footer-height);
    background-color: white;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    padding: var(--spacing-xl);
    text-align: center;
}

.footer-ad {
    width: 728px;
    height: 90px;
    margin: 0 auto var(--spacing-md);
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.copyright {
    font-size: var(--font-size-sm);
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1600px) {
    .sidebar {
        width: 200px;
    }
}

@media (max-width: 1200px) {
    .sidebar {
        display: none;
    }
    .header-ad {
        width: 468px;
    }
    .footer-ad {
        width: 468px;
    }
}

@media (max-width: 768px) {
    .header-ad {
        display: none;
    }
    .footer-ad {
        width: 320px;
    }
    .main-content {
        padding: var(--spacing-md);
    }
}