:root {
    --sidebar-width: 280px;
    --header-height: 60px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
}

.doc-header {
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 0 20px;
}

.doc-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

.sidebar {
    position: fixed;
    top: var(--header-height);
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: #f9fafb;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 1020;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 30px;
    transition: margin-left 0.3s ease;
}

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

@media (min-width: 769px) {
    .sidebar {
        transform: translateX(0);
    }

    .main-content {
        margin-left: var(--sidebar-width);
    }
}

.nav-section {
    padding: 20px;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

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

.sidebar-nav>li {
    margin-bottom: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
}

.nav-item .nav-icon {
    margin-right: 8px;
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

.nav-item:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.nav-item.active {
    background: #dbeafe;
    color: #2563eb;
    font-weight: 500;
}

.nav-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
}

.nav-parent .nav-icon {
    margin-right: 8px;
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

.nav-parent .nav-text {
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-parent:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.nav-parent.active {
    background: #dbeafe;
    color: #2563eb;
    font-weight: 500;
}

.nav-parent i {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.nav-parent.expanded i.fa-chevron-down {
    transform: rotate(180deg);
}

.nav-children {
    list-style: none;
    padding-left: 20px;
    margin: 4px 0 0 0;
    display: none;
}

.nav-children.show {
    display: block;
}

.nav-children .nav-item {
    font-size: 0.9rem;
    padding: 6px 12px;
}

.search-box {
    padding: 15px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.search-box input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
}

.search-box input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.sidebar-nav>li {
    margin-bottom: 4px;
}

.content-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111827;
}

.content-section h2 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
    color: #1f2937;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.content-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 12px;
    color: #374151;
}

.content-section p {
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 16px;
}

.code-block {
    background: #1f2937;
    color: #e5e7eb;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.alert-info-custom {
    background: #dbeafe;
    border-left: 4px solid #2563eb;
    padding: 16px;
    border-radius: 6px;
    margin: 20px 0;
}

.toggle-sidebar {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #374151;
    cursor: pointer;
    padding: 5px 10px;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }

    .content-section h1 {
        font-size: 2rem;
    }

    .doc-logo {
        font-size: 1.2rem;
    }

    .toggle-sidebar {
        font-size: 1.3rem;
    }
}

.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.table-of-contents {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.table-of-contents h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.table-of-contents ul {
    list-style: none;
    padding-left: 0;
}

.table-of-contents li {
    margin-bottom: 8px;
}

.table-of-contents a {
    color: #2563eb;
    text-decoration: none;
}

.table-of-contents a:hover {
    text-decoration: underline;
}

.header-menu {
    gap: 8px;
}

.header-menu-item {
    padding: 8px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
}

.header-menu-item:hover {
    background: #f3f4f6;
    color: #2563eb;
}

.header-menu-item.active {
    color: #2563eb;
}

.header-dropdown {
    position: relative;
}

.header-dropdown-toggle {
    padding: 8px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
    cursor: pointer;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header-dropdown-toggle:hover {
    background: #f3f4f6;
    color: #2563eb;
}

.header-dropdown-toggle i {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.header-dropdown.show .header-dropdown-toggle i {
    transform: rotate(180deg);
}

.header-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    /* margin-top: 8px; */
    display: none;
    z-index: 1040;
}

.header-dropdown.show .header-dropdown-menu {
    display: block;
}

.header-dropdown-item {
    display: block;
    padding: 10px 16px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
}

.header-dropdown-item:hover {
    background: #f3f4f6;
    color: #2563eb;
}

.header-dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.header-dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.header-dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}

.mobile-menu-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #374151;
    cursor: pointer;
    padding: 5px 10px;
}

.offcanvas-header {
    border-bottom: 1px solid #e5e7eb;
}

.offcanvas-body {
    padding: 0;
}

.offcanvas-menu-item {
    display: block;
    padding: 12px 20px;
    color: #374151;
    text-decoration: none;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s;
}

.offcanvas-menu-item:hover {
    background: #f3f4f6;
    color: #2563eb;
}

.offcanvas-menu-section {
    padding: 15px 20px 5px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.5px;
}

.offcanvas-dropdown {
    border-bottom: 1px solid #f3f4f6;
}

.offcanvas-dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    color: #374151;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.offcanvas-dropdown-toggle:hover {
    background: #f3f4f6;
    color: #2563eb;
}

.offcanvas-dropdown-toggle i {
    transition: transform 0.2s;
}

.offcanvas-dropdown.show .offcanvas-dropdown-toggle i {
    transform: rotate(180deg);
}

.offcanvas-dropdown-menu {
    background: #f9fafb;
    display: none;
}

.offcanvas-dropdown.show .offcanvas-dropdown-menu {
    display: block;
}

.offcanvas-dropdown-item {
    display: block;
    padding: 10px 20px 10px 40px;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.offcanvas-dropdown-item:hover {
    background: #e5e7eb;
    color: #2563eb;
}

@media (min-width: 992px) {
    .mobile-menu-btn {
        display: none;
    }
}

.right-sidebar {
    width: 300px;
    position: sticky;
    top: calc(var(--header-height) + 20px);
    height: fit-content;
}

.right-sidebar-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.right-sidebar-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-item {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.blog-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.blog-item:first-child {
    padding-top: 0;
}

.blog-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    line-height: 1.4;
}

.blog-title:hover {
    color: #2563eb;
}

.blog-meta {
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 10px;
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 1200px) {
    .right-sidebar {
        display: none;
    }

    .content-wrapper {
        max-width: 100%;
    }
}

@media (min-width: 769px) {
    .sidebar {
        transform: translateX(0);
    }

    .main-content {
        margin-left: var(--sidebar-width);
    }
}

img {
    width: -webkit-fill-available;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
    cursor: pointer;
    padding: 25px;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.blog-card-badge {
    display: inline-block;
    background: #dbeafe;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 15px;
}

.blog-card-content {
    padding: 0;
    min-height: 145px;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
    line-height: 1.4;
    text-decoration: none;
}

.blog-card-excerpt {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid #f3f4f6;
    font-size: 0.85rem;
    color: #6b7280;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-card-author img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
}

.blog-card-stats {
    display: flex;
    gap: 15px;
}

.blog-card-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}