/* ==========================================================================
   1. Global Styles & Variables
   ========================================================================== */
:root {
    --primary-color: #0052ff;
    --secondary-color: #f0f4ff;
    --text-color: #333;
    --light-gray-color: #f4f4f4;
    --dark-gray-color: #666;
    --white-color: #fff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --font-family: 'Arial', sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white-color);
}

/* A general container for consistent page width */
.container {
    margin: 20px;
}


/* ==========================================================================
   2. Reusable Components
   ========================================================================== */

/* --- Buttons --- */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

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

.btn-primary:hover {
    background-color: #0045d1;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: #e0e8ff;
}


/* ==========================================================================
   3. Core Layout
   ========================================================================== */

/* --- Navigation Bar --- */
.main-header {
    background: var(--white-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

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

.nav-link {
    text-decoration: none;
    color: var(--dark-gray-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-auth {
    display: flex;
    gap: 1rem;
}

/* --- Footer --- */
.main-footer {
    text-align: center;
    padding: 2rem;
    background: #1a253c;
    color: var(--light-gray-color);
}


/* ==========================================================================
   4. Responsive Design for Core Layout
   ========================================================================== */

@media (max-width: 768px) {
    .nav-menu, .nav-auth {
        display: none; /* Simple hide for mobile, can be replaced with a hamburger menu */
    }
}