/* --- GLOBAL BOX SIZING (Essential for responsive layouts) --- */
* {
    box-sizing: border-box;
}

/* --- WRAPPER BODY AREA --- */
#wrapper-body {
    display: flex;
    margin: 85px auto;
    height: auto;
    width: 90%; /* Changed from fixed width to fluid percentage */
    max-width: 1250px; /* Keeps it from getting too big on large screens */
    /* min-width: 1250px;  <-- REMOVED: This causes horizontal scroll on mobile */
}

/* --- LEFT SIDEBAR --- */
#wrapper-body #left-container {
    width: 24%;
    height: 400px !important;
    position: sticky;
    top: 85px;
    overflow: auto;
}

#wrapper-body #left-container ul {
    list-style: none;
    min-width: 100%;
    height: auto;
    display: block;
    padding: 0;
    margin: 0;
}

#wrapper-body #left-container ul li {
    width: 94%;
    /* float: left; <-- REMOVED: Flex/Block is better than float for layouts */
    display: block; /* Changed to block for better stacking */
    margin: 15px 0px 0px 0px;
    font-family: font, sans-serif; /* Added fallback */
    font-size: 16px;
    letter-spacing: 0px;
    color: #737373;
    cursor: pointer; /* UX improvement */
    transition: 0.3s; /* Smooth hover effect */
}

#wrapper-body #left-container ul li.header {
    margin: 15px 0px 10px 0px;
    font-family: font4, sans-serif;
    font-size: 22px;
    font-weight: bold;
    color: #000;
}

#wrapper-body #left-container ul li:hover {
    color: #333;
}

/* --- RIGHT CONTENT AREA --- */
#wrapper-body #right-container {
    width: 76%; /* Adjusted to fill remaining space (100% - 24%) */
    height: auto;
    padding: 0px 60px 0px 60px; /* Reduced right padding for better balance */
    font-family: font1, sans-serif;
    font-size: 18px;
    letter-spacing: 0.5px;
    line-height: 27px;
    color: #000;
}

#wrapper-body #right-container p.title {
    margin: 0;
    font-family: font4, sans-serif;
    font-size: 52px;
    letter-spacing: 0px;
    color: #000;
    padding-top: 15px;
    padding-bottom: 15px;
    line-height: 1.2;
}

/* =========================================
   MOBILE RESPONSIVENESS (Max Width 768px) 
   ========================================= */
@media screen and (max-width: 768px) {
    
    #wrapper-body {
        flex-direction: column; /* Stacks sidebar on top of content */
        margin: 70px auto; /* Reduces top margin */
        width: 95%;
    }

    #wrapper-body #left-container {
        width: 100%;
        height: auto !important;
        position: relative; /* Removes sticky behavior on mobile */
        top: 0;
        margin-bottom: 40px;
        border-bottom: 1px solid #eee; /* Visual separator */
        padding-bottom: 20px;
    }

    #wrapper-body #right-container {
        width: 100%;
        padding: 0px 10px; /* Drastically reduced padding for small screens */
    }

    #wrapper-body #right-container p.title {
        font-size: 32px; /* Smaller font for mobile headers */
        text-align: center;
    }
    
    #wrapper-body #left-container ul li.header {
        text-align: center;
    }
    
    /* Optional: Center list items on mobile */
    #wrapper-body #left-container ul li {
        text-align: center; 
        width: 100%;
    }
}