html {
  font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    background-color: #ffffff;
    color: #24292e;
    line-height: 1.5;
    display: flex;
    min-height: 100vh;
}

/* Left Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background-color: #f6f8fa;
    border-right: 1px solid #e1e4e8;
    overflow-y: auto;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid #e1e4e8;
}

.sidebar-brand {
    font-weight: 600;
    font-size: 18px;
    color: #24292e;
    text-decoration: none;
    display: block;
}

.sidebar-brand:hover {
    color: #0366d6;
    text-decoration: none;
}

.sidebar-nav {
    padding: 16px 0;
    flex: 1;
}

.sidebar-decorative-image {
    padding: 20px;
    text-align: center;
    margin-top: auto;
    flex-shrink: 0;
}

.sidebar-decorative-image img {
    max-width: 180px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 0;
    padding: 0;
    opacity: 0.8;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 8px 20px;
    color: #586069;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.1s ease;
}

.nav-link:hover {
    background-color: #e1e4e8;
    color: #24292e;
    text-decoration: none;
}

/* Navigation groups (permanently expanded) */
.nav-item-group {
    position: relative;
}

.nav-link-parent {
    color: #24292e;
    font-weight: 600;
    user-select: none;
    cursor: default;
}

.nav-link-parent[href] {
    cursor: pointer;
    user-select: auto;
}

.nav-link-parent[href]:hover {
    background-color: #e1e4e8;
    color: #0366d6;
    text-decoration: none;
}

.nav-sublist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: block;
}

.nav-link-child {
    padding-left: 40px;
    font-size: 13px;
    color: #586069;
    display: block;
}

.nav-link-child:hover {
    background-color: #e1e4e8;
    color: #24292e;
}

/* Main Content Area */
.main-content {
    margin-left: 260px;
    flex: 1;
    min-height: 100vh;
}

.content-wrapper {
    max-width: 980px;
    margin: 0 auto;
    padding: 45px;
    padding-bottom: 10%;
}

.home-layout {
    display: flex;
    align-items: flex-start;
    gap: 32px;
    margin-left: -20px;
}

.home-image-column {
    flex-shrink: 0;
    width: 200px;
    margin-left: 0;
}

.home-image-column img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    padding: 0;
}

.home-content-column {
    flex: 1;
    min-width: 0;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    background-color: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 0;
    padding: 8px 12px;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #24292e;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
}

@media (max-width: 767px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-overlay {
        display: block;
    }

    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        width: 260px;
        height: 100vh;
        transition: left 0.3s ease;
        z-index: 1000;
        border-right: 1px solid #e1e4e8;
        overflow-y: auto;
    }

    .sidebar.active {
        left: 0;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    .main-content {
        margin-left: 0;
    }

    .content-wrapper {
        padding: 15px;
        padding-top: 70px;
    }
}

.content-section {
    margin-top: 48px;
    scroll-margin-top: 20px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Active nav link styling */
.nav-link.active {
    background-color: #e1e4e8;
    color: #24292e;
    font-weight: 500;
}

h1 {
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 32px;
    line-height: 1.25;
    color: #24292e;
    border-bottom: 1px solid #eaecef;
    padding-bottom: 9px;
}

h2 {
    padding-top: 24px;
    margin-top: 24px;
    margin-bottom: 16px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    color: #24292e;
    border-bottom: 1px solid #eaecef;
    padding-bottom: 9px;
}

h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 16px;
    color: #24292e;
}

h4 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 16px;
    color: #24292e;
}

h5 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 16px;
    color: #24292e;
}

ul {
    margin-top: 0;
    margin-bottom: 16px;
    padding-left: 2em;
}

li {
    margin-top: 0.25em;
    margin-bottom: 0.25em;
}

p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 16px;
    color: #24292e;
}

a {
    color: #0366d6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.demo_font_arial{
    font-family: arial, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
}

/* Content images (better sizing + text flow) */
.content-img {
    display: block;
    margin: 16px auto;
    max-width: min(100%, 820px);
}

.content-img--sm {
    max-width: min(100%, 500px);
}

.content-img--right {
    float: right;
    margin: 8px 0 16px 24px;
}

.content-img--left {
    float: left;
    margin: 8px 24px 16px 0;
}

@media (max-width: 767px) {
    .content-img--right,
    .content-img--left {
        float: none;
        margin: 16px auto;
    }
}

.content-wrapper::after {
    content: "";
    display: block;
    clear: both;
}
