/* 1. Global Reset & Box Model Setup */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f6f9;
    color: #333;
}

/* 2. Page Container Wrapper */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

/* 3. Header Styling */
.header {
    background-color: #ffffff;
    color: #1e293b;
    padding: 30px;
    text-align: center;
    border-radius: 6px 6px 0 0;
    border: 2px solid #2980b9
}
.header img {
    float: left;
    text=align: left;
    display: block;
    padding: 1px;
    overflow: hidden;
}


/* 4. Navigation Menu */
.navbar {
    background-color: #334155;
    overflow: hidden;
}

.navbar a {
    float: left;
    display: block;
    color: #f8fafc;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    font-weight: 500;
}

.navbar a:hover {
    background-color: #475569;
    color: #ffffff;
}

/* 5. Flexbox Structure for Main Body Row */
.main-body {
    display: flex; /* Aligns child divs side-by-side */
    flex-wrap: wrap; /* Allows sections to wrap dynamically on tiny screens */
    background-color: #ffffff;
    min-height: 400px;
}

/* Sidebar Column (Takes 25% width on desktop) */
.sidebar {
    flex: 25%;
    background-color: #f8fafc;
    padding: 20px;
    border-right: 1px solid #e2e8f0;
}

.sidebar ul {
    list-style-type: none;
    margin-top: 15px;
}

.sidebar ul li a {
    color: #2563eb;
    text-decoration: none;
    display: block;
    padding: 8px 0;
}

.sidebar ul li a:hover {
    text-decoration: underline;
}

/* Main Content Column (Takes remaining 75% width) */
.content {
    flex: 75%;
    padding: 30px;
}

/* 6. Footer Section */
.footer {
    background-color: #1e293b;
    color: #94a3b8;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    border-radius: 0 0 6px 6px;
    margin-top: 1px;
}

/* 7. Responsive Media Query for Mobile Screens */
@media screen and (max-width: 768px) {
    .main-body {
        flex-direction: column; /* Stack sidebar and content vertically on mobile */
    }
    
    .navbar a {
        float: none;
        width: 100%; /* Links take up full width on mobile devices */
        text-align: left;
    }
}

