.button-1
{
width: 500px;
max-width: 100%;
background-color:#002661;
padding: 10px;
color: #fff;

}

    .container1 {
    display: flex; /* Two-column layout */
    max-width: 1200px; 
    margin: 0 auto; 
    background-color: #fff;
    /* KEY DESKTOP STYLE: Fixed height to constrain content and enable inner scroll */
    height: 100vh; 
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* --- Left Sidebar (Fixed Navigation) --- */
.leftsidebar {
    width: 350px; 
    flex-shrink: 0; 
    background-color:#f9eeeb;
    padding: 20px 0;
    border-right: 1px solid #ddd;
    /* Fixed effect achieved by container1's height: 100vh */
}

.leftsidebar ul {
    list-style: none;
}

.leftsidebar li {
    padding: 0;
    border-bottom: 1px solid #eee;
}

.leftsidebar li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    transition: 
    background-color 0.2s, padding 0.2s;
    font-size: 14px;
    position: relative;
    border-left: 4px solid transparent; 
}

.leftsidebar li a:hover {
    background-color: #f7f7f7;
}

/* --- Active Scroll-Spy State (Highlight) --- */
.leftsidebar li a.active-spy {
    background-color:#ffffff; 
    color: #007bff; 
    font-weight: bold;
    border-left: 4px solid #007bff; 
    padding-left: 16px; 
}

.leftsidebar li a::after {
    content: '→'; 
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #999;
}

/* --- Right Main Content Area (Inner Scrolling on Desktop) --- */
.content {
    flex-grow: 1; 
    padding: 30px;
    /* KEY DESKTOP STYLE: Enable inner scrolling for content */
    overflow-y: auto; 
    width: 850px; 
    scroll-behavior: smooth;
}

.content section {
    margin-bottom: 40px;
    padding-bottom: 20px;
}

.content h2 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid #ddd;
}


/* --- Responsiveness: Mobile Layout (Full Page Scroll) --- */
@media (max-width: 768px) {
    .container1 {
        flex-direction: column; 
        height: auto; /* Allow height to expand */
        min-height: 100vh;
    }

    .leftsidebar {
        width: 100%; 
        border-right: none;
        border-bottom: 1px solid #ddd; 
        padding: 10px 0;
        position: static; 
        height: auto; 
    }

    .leftsidebar ul {
        display: flex;
        flex-wrap: wrap; 
        justify-content: center; 
    }

    .leftsidebar li {
        border-bottom: none;
        margin: 5px; 
        border: 1px solid #ddd;
        border-radius: 5px;
    }

    .leftsidebar li a {
        padding: 5px 10px;
        border-left: none; 
    }
    
    .leftsidebar li a.active-spy {
        background-color: #007bff; 
        color: #fff; 
        font-weight: bold;
        padding-left: 10px; 
        border-left: none;
    }

    .leftsidebar li a::after {
        content: none;
    }
    
    .content {
        /* KEY MOBILE STYLE: Disables inner scroll on mobile */
        overflow-y: visible; 
        width: 100%;
        padding: 20px;
    }
}

