/* RESET & FONTS */
:root {
    --primary: #004b8d;
    --accent: #0081a7;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.8; /* Increased line-height for better readability */
    color: #444;
    background-color: var(--light);
    margin: 0;
    padding: 0;
}

/* NAVIGATION BAR */
.navbar {
    background: var(--white);
    box-shadow: 0 1px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e1e4e8;
}

.nav-container {
    max-width: 1000px;     /* Maximum width */
    width: 90%;            /* CRITICAL FIX: Leaves 5% space on sides */
    margin: 0 auto;        /* Centers the bar */
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

/* NAVIGATION LINKS */
.nav-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap; /* Prevents disappearing tabs on small screens */
}

.nav-links a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
}

/* MAIN CONTENT WRAPPER - THE "PAPER" */
.wrapper {
    max-width: 800px;      /* Restricts reading width (like Medium.com) */
    width: 90%;            /* CRITICAL FIX: Ensures borders never touch edges */
    margin: 40px auto;     /* Centers the paper vertically and horizontally */
    padding: 50px 60px;    /* Adds ample space INSIDE the box */
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.03);
    min-height: 60vh;
    box-sizing: border-box; /* Ensures padding doesn't break width */
}

/* TYPOGRAPHY */
h1 { color: var(--dark); margin-bottom: 15px; font-size: 2.2rem; }
h2 { color: var(--primary); border-bottom: 2px solid #f0f0f0; padding-bottom: 10px; margin-top: 40px; }
h3 { color: var(--dark); margin-top: 30px; font-weight: 600; }
p { margin-bottom: 20px; font-size: 1.05rem; }
ul { margin-bottom: 20px; padding-left: 20px; }
li { margin-bottom: 8px; } /* Spacing between bullet points */
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* THE 2x2 GRID + CONTACT CENTERED */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two Columns */
    gap: 25px;
    margin-top: 40px;
}

.card {
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: var(--primary); 
}

.card h3 { margin-top: 0; color: var(--primary); font-size: 1.2rem; }
.card p { font-size: 0.95rem; color: #666; margin-bottom: 20px; }
.card-link { font-weight: 600; font-size: 0.9rem; }

/* Center the 5th card (Contact) */
.dashboard-grid .card:last-child {
    grid-column: span 2;
    max-width: 60%;
    margin: 0 auto;
}

/* FOOTER */
footer { text-align: center; padding: 40px 20px; color: #777; font-size: 0.9rem; }
.social-links { margin-top: 10px; }
.social-links a { margin: 0 10px; color: var(--primary); font-weight: 600; }

/* MOBILE RESPONSIVE TWEAKS */
@media (max-width: 768px) {
    .wrapper { 
        padding: 30px 20px; /* Less internal padding on phones */
        width: 95%;         /* Use more screen space on phones */
    }
    .nav-container { padding: 0 10px; }
    .nav-links { gap: 15px; justify-content: center; }
    .dashboard-grid { grid-template-columns: 1fr; } /* Stack cards */
    .dashboard-grid .card:last-child { grid-column: span 1; max-width: 100%; }
}