/* ==========================================================================
   GLOBAL CSS - CloudAlls Academy (Light Theme)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

:root {
    /* Brand Colors extracted from your Logo */
    --primary-blue: #2563EB;
    --primary-sky: #0ea5e9;
    --primary-purple: #7C3AED;
    
    /* Light Theme Palette */
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-light: #cbd5e1;
    
    /* Layout */
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: var(--primary-blue);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-sky);
}

/* --- Layout Wrappers --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

main {
    flex-grow: 1;
    padding: 60px 0;
}

/* --- Header & Navigation --- */
.site-header {
    background-color: var(--bg-surface);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-link svg {
    height: 40px; /* Scaled down for header */
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--primary-purple);
    transform: translateY(-2px);
}

/* --- Typography & Utilities --- */
.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.text-center { text-align: center; }
.mt-2 { margin-top: 20px; }
.mb-2 { margin-bottom: 20px; }

/* --- Footer --- */
.site-footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    padding: 40px 0 20px;
    text-align: center;
    color: var(--text-muted);
}

/* --- Error Pages --- */
.error-section {
    padding: 10vh 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.error-code {
    font-size: 8rem;
    color: var(--primary-blue);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

.error-message {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-size: 1.2rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* In a full build, we'll add a JS mobile menu toggle */
    }
    .page-title {
        font-size: 2rem;
    }
}