﻿/* Reset basic margins */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
    background-color: #f4f4f9;
    color: #333;
}

/* 1. Fluid Container */
.wrapper {
    width: 90%; /* Occupies 90% of the screen width */
    max-width: 1200px; /* Prevents the site from getting too wide on huge monitors */
    margin: 20px auto; /* Centers the container horizontally */
}

/* Full-width fluid components */
.main-header, .main-footer {
    width: 100%;
    background-color: #008CBA;
    color: #fff;
    padding: 20px;
    text-align: center;
    border-radius: 6px;
}

/* 2. Flexible Grid Row */
.content-area {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap if the screen gets exceptionally narrow */
    gap: 2%; /* Keeps a fluid 2% gap between columns */
    margin: 20px 0;
}

/* 3. Percentage-Based Columns */
.main-content {
    flex: 1; /* Flex-grow allows it to fill remaining space */
    min-width: 60%; /* Roughly spans 60-70% of the parent row */
    background-color: #fff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.sidebar {
    width: 28%; /* Spans 28% of the row width */
    min-width: 250px; /* Keeps the sidebar readable on smaller viewports */
    background-color: #e1e8ed;
    padding: 20px;
    border-radius: 6px;
}

h2 {
    margin-bottom: 25px;
}

h3 {
    margin-top: 15px;
    margin-bottom: 15px;
}
