* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: #f7fafd;
    color: #222b45;
    font-family: 'Segoe UI', 'Arial', sans-serif;
}

.cpb-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 260px;
    /* Glassmorphism effect */
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 2px 0 24px rgba(30,60,114,0.12);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-right: 1px solid rgba(200, 200, 255, 0.18);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.cpb-container {
    display: flex;
    min-height: 100vh;
    margin-left: 260px; /* width of sidebar */
    transition: margin-left 0.3s;
    background: #f7fafd;
}

.cpb-hamburger {
    display: none;
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 1100;
    width: 40px;
    height: 40px;
    background: #e3e9f3;
    border: none;
    border-radius: 6px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(30,60,114,0.10);
}
.cpb-hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    margin: 4px auto;
    background: #222b45;
    border-radius: 2px;
    transition: all 0.3s;
}

.cpb-sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: bold;
    color: #2a5298;
    padding: 32px 24px 18px 24px;
    border-bottom: 1px solid #e3e9f3;
    letter-spacing: 1px;
    background: #f7fafd;
}

.cpb-sidebar-header i {
    font-size: 1.5em;
}

.cpb-nav {
    display: flex;
    flex-direction: column;
    padding: 18px 0;
    gap: 6px;
}

.cpb-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #222b45;
    text-decoration: none;
    padding: 12px 28px;
    font-size: 1.05em;
    border-left: 4px solid transparent;
    border-radius: 0 20px 20px 0;
    transition: 
        background 0.2s,
        border-color 0.2s,
        color 0.2s;
    cursor: pointer;
}

.cpb-nav-link:hover, .cpb-nav-link.active {
    background: #e3e9f3;
    color: #2a5298;
    border-left: 4px solid #2a5298;
}

.cpb-content {
    flex: 1;
    padding: 60px 40px 40px 40px;
    background: #f7fafd;
    min-width: 0;
}

#intro {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: bold;
    color: #2a5298;
    letter-spacing: 1px;
}

.cpb-heading {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 18px;
    color: #2a5298;
}

.cpb-paragraph {
    font-size: 1.1rem;
    margin-bottom: 18px;
    color: #222b45;
}

.cpb-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(30,60,114,0.08);
    display: block;
    background: #fff;
}

ul {
    font-size: 1.1rem;
    margin-left: 24px;
    margin-bottom: 18px;
}

.cpb-example {
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: bold;
    color: #2a5298;
}

hr {
    margin-bottom: 15px;
    border: none;
    border-top: 2px solid #2a5298;
    width: 60px;
    background: transparent;
}

footer {
    background: #ffffff;
    color: #222b45;
    text-align: center;
    padding: 24px 0 10px 0;
    width: 100%;
    box-shadow: 0 -2px 12px rgba(30,60,114,0.07);
    border-top: 1px solid #e3e9f3;
}

footer .cpb-social-links {
    margin: 10px 0;
}

footer .cpb-social-links a {
    text-decoration: none;
    color: #2a5298;
    margin: 0 12px;
    font-size: 1.6em;
    transition: color 0.2s;
}

footer .cpb-social-links a:hover {
    color: #1e90ff;
}

footer p {
    font-size: 0.95em;
    margin-top: 10px;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #222b45;
}

@media (max-width: 900px) {
    .cpb-hamburger {
        display: flex;
    }
    .cpb-sidebar {
        transform: translateX(-100%);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 220px;
        z-index: 1001;
    }
    .cpb-sidebar.active {
        transform: translateX(0);
    }
    .cpb-container {
        margin-left: 0;
    }
    .cpb-sidebar-header {
        padding: 18px 12px;
        font-size: 1.1rem;
    }
    .cpb-content {
        padding: 30px 10px 20px 10px;
    }
}

@media (max-width: 600px) {
    .cpb-sidebar {
        flex-direction: column;
        width: 100vw;
        min-height: unset;
        height: auto;
        position: static;
        box-shadow: none;
        border-bottom: 2px solid #e3e9f3;
    }
    .cpb-sidebar-header {
        padding: 12px 8px;
        font-size: 1em;
    }
    .cpb-nav {
        flex-direction: column;
        gap: 0;
        padding: 0 0 8px 0;
    }
    .cpb-nav-link {
        padding: 10px 12px;
        font-size: 0.95em;
        border-left: none;
        border-bottom: 2px solid transparent;
    }
    .cpb-content {
        padding: 18px 4vw 12px 4vw;
    }
}

/* When sidebar is open, prevent scrolling on body */
body.cpb-sidebar-open {
    overflow: hidden;
}
