/* style.css - Shared Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #444;
    line-height: 1.6;
    background-color: #f0f2f5;
    /* Ensure you have a 'background.jpg' in your folder */
    background-image: url('images/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.container {
    max-width: 1400px;
    margin: 40px auto;
    background-color: #ffffff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    min-height: 100vh;
}

/* Header */
.site-header { padding: 40px; text-align: center; border-bottom: 1px solid #eaeaea; }
.site-header h1 { font-weight: 700; font-size: 2.5rem; color: #2c3e50; margin-bottom: 5px; }
.site-header .highlight { color: #3498db; }
.subtitle { color: #8898aa; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; }

/* Navigation */
.navbar { display: flex; background-color: #34495e; position: sticky; top: 0; z-index: 100; }
.navbar a {
    flex-grow: 1; text-align: center; padding: 16px; color: #ecf0f1;
    text-decoration: none; font-weight: 500; border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}
.navbar a:last-child { border-right: none; }
.navbar a:hover { background-color: #2c3e50; }
.navbar a.active { background-color: #3498db; }

/* Content Layout */
.content-wrapper { display: flex; align-items: flex-start; padding: 40px; gap: 40px; }
.main-body { flex: 3; }
.main-body h2 { color: #2c3e50; margin-bottom: 15px; }
.main-body .intro { font-size: 1.1rem; color: #666; margin-bottom: 20px; }
hr { border: 0; height: 1px; background: #eaeaea; margin: 30px 0; }

/* Sidebar */
.sidebar { flex: 1; min-width: 300px; position: -webkit-sticky; position: sticky; top: 20px; }
.sidebar-card { background: #f8f9fa; border: 1px solid #eaeaea; padding: 20px; border-radius: 6px; margin-bottom: 20px; }
.sidebar h3 { font-size: 1rem; text-transform: uppercase; margin-bottom: 15px; color: #2c3e50; border-bottom: 2px solid #3498db; display: inline-block; padding-bottom: 5px; }
.sidebar-links { list-style: none; }
.sidebar-links li { margin-bottom: 10px; }
.sidebar-links a { text-decoration: none; color: #555; display: block; padding: 8px; background: #fff; border: 1px solid #eee; border-radius: 4px; transition: all 0.2s; }
.sidebar-links a:hover { border-color: #3498db; color: #3498db; transform: translateX(5px); }
.info-box { background-color: #e8f4fc; border-color: #bde0f7; color: #2c3e50; }

/* Footer */
.site-footer { padding: 20px; text-align: center; background: #fff; border-top: 1px solid #eaeaea; color: #999; font-size: 0.9rem; }

/* Mobile */
@media (max-width: 900px) {
    .content-wrapper { flex-direction: column; }
    .sidebar { width: 100%; position: static; }
    .navbar { flex-direction: column; }
    .container { margin: 0; }
}
