body {
    font-family: 'Nunito', sans-serif; /* Updated font */
    color: #5D4037; /* Ensured this color is present */
    margin: 0;
    display: flex;
}

.container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.sidebar {
    width: 200px;
    background-color: #8FBC8F;
    padding: 20px;
    color: #F5F5DC;
    height: 100vh;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif; /* Added for consistency */
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

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

.sidebar ul li a.active {
    font-weight: bold;
    color: #FFF8DC;
}

.sidebar ul li a:hover {
    background-color: #79A879;
}

.main-content {
    flex-grow: 1;
    padding: 40px;
    background-color: #FAF3E0;
    box-sizing: border-box;
}

.main-content h1 {
    color: #556B2F; /* Ensured this color is present */
    font-family: 'Montserrat', sans-serif; /* Updated font */
}

.main-content p {
    color: #5D4037; /* This was already the body color, so it inherits. Explicitly setting is also fine */
    line-height: 1.6;
    /* font-family: 'Nunito', sans-serif; will be inherited from body */
}

.image-placeholder {
    width: 100%;
    max-width: 600px;
    height: auto;
    background-color: transparent;
    border: 1px solid #D2B48C;
    border-radius: 15px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.main-content img,
.image-placeholder img {
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fallback for h1 and p if they are not inside .main-content */
h1 { /* This will be overridden by .main-content h1 for specific context */
    color: #556B2F;
    font-family: 'Montserrat', sans-serif; /* Updated font */
}

p { /* This will be overridden by .main-content p for specific context, or inherit from body */
    color: #5D4037;
    line-height: 1.6;
    font-family: 'Nunito', sans-serif; /* Explicitly set for safety, though body should cover it */
}

/* Media Query for Responsive Layout */
@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Stack sidebar and main content */
    }

    .sidebar {
        width: 100%; /* Full width for sidebar */
        height: auto; /* Adjust height to content */
        padding-bottom: 20px; /* Add some space below sidebar content */
        /* box-sizing: border-box; is already set and inherited */
    }

    .main-content {
        width: 100%; /* Ensure main content takes full width */
        /* padding: 40px; is existing and should be fine, adjust if needed */
    }

    /* Optional: Adjust sidebar link padding for easier tapping */
    .sidebar ul li a {
        padding: 15px 20px; /* Increase padding for tap targets, adjust horizontal if needed */
    }
}
