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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
    background-color: #ffffff;
}
.body-base-layout {
    width: 100%;
    padding: 0 0px;
    margin: 0 auto;
    align-items: center;
    position: relative;
    /* Override base.css font-family to prevent bold text */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

.base-layout p,
.base-layout span,
.base-layout div,
.base-layout li,
.base-layout a,
.base-layout h1,
.base-layout h2,
.base-layout h3,
.base-layout h4,
.base-layout h5,
.base-layout h6 {
    font-family: inherit !important;
}

/* ==================== DESKTOP LAYOUT (1024px+) ==================== */
.tutorial-body-wrapper{
    padding-top: 120px;
    padding-bottom: 200px;
}
.tutorial-container {
    display: grid;
    grid-template-columns: 280px 1fr 250px;
    gap: 40px;
    max-width: 1216px;
    margin: 0 auto;
}

/* ==================== SIDEBAR (DESKTOP + MOBILE DRAWER) ==================== */
.sidebar {
    padding-right: 20px;
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 14px;
    font-weight: 600;
    color: #0066cc;
    padding: 8px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
}

.sidebar-title:hover {
    color: #0052a3;
    transform: translateX(2px);
}

.sidebar-title:active {
    transform: translateX(1px);
}

.sidebar-menu {
    list-style: none;
    margin-top: 8px;
    max-height: 1000px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-menu.collapsed {
    max-height: 0;
    opacity: 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 8px 0 8px 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    transform: translateX(0);
    animation: slideInMenuItem 0.4s ease-out;
}

.menu-item:hover {
    color: #0066cc;
    transform: translateX(4px);
    padding-left: 24px;
}

.menu-item.active {
    color: #0066cc;
    font-weight: 500;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background-color: #0066cc;
    border-radius: 2px;
    transition: height 0.3s ease-out;
}

.menu-item.active::before {
    height: 16px;
}

.menu-item .icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

/* ==================== MOBILE HEADER (Fixed Top) ==================== */
.mobile-header {
    display: none;
}

.mobile-header.active {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
}

.mobile-header-title {
    flex: 1;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-header-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    transition: all 0.3s;
}

.mobile-header-btn:hover {
    background: #f5f5f5;
    border-radius: 50%;
}

/* ==================== SIDEBAR DRAWER (MOBILE) ==================== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    animation: fadeIn 0.3s ease-out;
}

.sidebar-overlay.active {
    display: block;
}

.sidebar-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 1001;
    overflow-y: auto;
    padding: 20px;
    animation: slideInLeft 0.3s ease-out;
}

.sidebar-drawer.active {
    display: block;
}

.sidebar-drawer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #666;
}

/* ==================== TOC DRAWER (MOBILE BOTTOM SHEET) ==================== */
.toc-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.toc-overlay.active {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.toc-drawer {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 70vh;
    background: #fff;
    z-index: 1001;
    border-radius: 16px 16px 0 0;
    overflow-y: auto;
    animation: slideUpBottom 0.25s ease-out;
}

.toc-drawer.active {
    display: block;
}

.toc-drawer-handle {
    width: 40px;
    height: 4px;
    background: #d0d0d0;
    border-radius: 2px;
    margin: 12px auto;
}

.toc-drawer-content {
    padding: 16px 20px 40px;
}

/* ==================== FLOATING BUTTONS (MOBILE) ==================== */
.floating-menu-btn,
.floating-toc-btn {
    display: none;
    position: fixed;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    z-index: 500;
    font-size: 20px;
    color: #333;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.floating-menu-btn.active,
.floating-toc-btn.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-menu-btn:hover,
.floating-toc-btn:hover {
    background: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.floating-menu-btn {
    bottom: 24px;
    left: 12px;
}

.floating-toc-btn {
    bottom: 24px;
    right: 12px;
}

/* Main Content Styles */
.body-wrapper {
    display: flex;
    gap: 30px;
    padding-top:120px
}

.main-content {
    max-width: 800px;
    background: var(--Gray-50, #F9FAFB);
    border-radius: 16px;
    padding: 30px;
}

/* Breadcrumb Section */
.tutorial-breadcrumb-section {
    margin-bottom: 10px;
}
.base-layout{
    padding: 0px;
}
.tutorial-breadcrumb {
    display: flex;
    justify-content: left;
    list-style: none;
    background: none;
    padding: 0;
    margin: 0;
    font-size: 14px;
    white-space: nowrap;
    overflow-x: auto;
}

.tutorial-breadcrumb-item {
    color: #6c757d;
}

.tutorial-breadcrumb-item + .tutorial-breadcrumb-item::before {
    content: "/";
    padding: 0 10px;
    color: #6c757d;
}

.tutorial-breadcrumb-item a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s;
}

.tutorial-breadcrumb-item a:hover {
  color: #2e90fa;
}

.tutorial-breadcrumb-item.active {
  color: #2e90fa;
}
.tutorial-breadcrumb-section .tutorial-breadcrumb {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

.tutorial-breadcrumb-section .tutorial-breadcrumb-item {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
    font-weight: 400 !important;
}

.tutorial-breadcrumb-section .tutorial-breadcrumb-item a {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
    font-weight: 400 !important;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.intro-text {
    font-size: 16px;
    color: #4a4a4a;
    margin-bottom: 30px;
    line-height: 1.8;
}

.subsection-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.content-list {
    list-style: none;
    margin-bottom: 40px;
    padding-left: 24px;
}

.content-list li {
    font-size: 15px;
    color: #4a4a4a;
    margin-bottom: 12px;
    position: relative;
    padding-left: 12px;
    line-height: 1.8;
}

.content-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: #666;
    border-radius: 50%;
}

.section-heading {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 24px;
    padding-bottom: 12px;
}

.prerequisites-section {
    padding: 16px;
    border-radius: 4px;
    margin: 20px 0;
    border-left: 4px solid green;
}

.prerequisite-item {
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.8;
}

.prerequisite-item:last-child {
    margin-bottom: 0;
}

.link {
    color: #0066cc;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.workflow-section {
    margin-bottom: 40px;
}

.workflow-path {
    background-color: #f0f0f0;
    padding: 16px 20px;
    border-radius: 6px;
    margin: 20px 0;
    font-size: 15px;
}

.definition-list {
    margin: 24px 0;
}

.definition-item {
    font-size: 15px;
    color: #4a4a4a;
    margin-bottom: 16px;
    padding-left: 20px;
}

.note-box {
    
    border-left: 4px solid #ffc107;
    padding: 20px;
    border-radius: 6px;
    margin-top: 24px;
}

.note-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.note-box p {
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.6;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, #0088cc 0%, #0066cc 100%);
    border-radius: 16px;
    padding: 60px 50px;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
    color: white;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-description {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 500px;
}

.cta-form {
    display: flex;
    gap: 12px;
    max-width: 600px;
}

.cta-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

.cta-button {
    padding: 14px 32px;
    background-color: #1a1a1a;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #333;
}

.cta-decoration {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    pointer-events: none;
}

.circle {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.circle-1 {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 15%;
}

.circle-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 25%;
}

.circle-3 {
    width: 60px;
    height: 60px;
    top: 40%;
    right: 40%;
}

.circle-4 {
    width: 40px;
    height: 40px;
    top: 75%;
    right: 45%;
}

/* Table of Contents Sidebar */
.toc-sidebar {
    padding-top: 0;
    padding-left: 20px;
    border-left: 1px solid #e5e5e5;
}

.edit-doc-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    border: 1px solid #D1D5DB !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    color: #374151 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    margin-bottom: 20px !important;
    transition: all 0.2s !important;
}

.edit-doc-link:hover {
    border-color: #9CA3AF;
    background-color: #F9FAFB;
}

.github-icon {
    width: 14px;
    height: 14px;
}

.toc-header {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
}

.menu-icon {
    font-size: 12px !important;
    color: #6B7280 !important;
}

.toc-title {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #6B7280 !important;
    margin: 0 !important;
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toc-link {
    font-size: 12px !important;
    color: #6B7280 !important;
    text-decoration: none !important;
    padding: 6px 0 !important;
    padding-left: 8px !important;
    transition: color 0.2s !important;
    line-height: 1.4 !important;
}

.toc-link:hover {
    color: #0EA5E9;
}

.toc-link.active {
    color: #0EA5E9;
}

/* ==================== SIDEBAR ICON ROTATION ==================== */
.sidebar-title .icon {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sidebar-title .icon.rotate {
    transform: rotate(180deg);
}

/* ==================== ANIMATIONS ==================== */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInMenuItem {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes menuItemPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes slideUpBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==================== FOOTER FIXES ==================== */
/* Ensure footer doesn't inherit grid layout constraints */
.footer-al {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    grid-column: 1 / -1; /* Span all grid columns if inside grid */
}

.footer-al .container {
    max-width: 1440px !important;
    width: 100% !important;
    display: block !important; /* Override any grid settings */
    padding: 0 20px !important;
    margin: 0 auto !important;
}

.footer-bg {
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important; /* Full viewport width */
}

/* ==================== RESPONSIVE MOBILE (max-width: 500px) ==================== */
@media (max-width: 500px) {
    .tutorial-container {
        display: block;
        padding: 16px;
    }

    .sidebar {
        display: none;
    }

    .toc-sidebar {
        display: none;
    }

    .body-wrapper {
        flex-direction: column;
    }

    .main-content {
        padding: 0;
    }

    .tutorial-breadcrumb {
        font-size: 12px;
    }

    .page-title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .intro-text {
        font-size: 14px;
    }

    .subsection-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .content-list {
        padding-left: 20px;
    }

    .content-list li {
        font-size: 14px;
    }

    .section-heading {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .prerequisites-section {
        padding: 12px;
        margin: 16px 0;
    }

    .prerequisite-item {
        font-size: 14px;
    }

    .workflow-path {
        padding: 12px 16px;
        font-size: 14px;
    }

    .definition-item {
        font-size: 14px;
        padding-left: 16px;
    }

    .note-box {
        padding: 12px;
    }

    .note-box p {
        font-size: 13px;
    }

    .cta-banner {
        padding: 24px 16px;
    }

    .cta-title {
        font-size: 24px;
    }

    .cta-form {
        flex-direction: column;
        gap: 10px;
    }

    .cta-input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .cta-button {
        padding: 12px 20px;
        font-size: 14px;
    }

    .cta-decoration {
        display: none;
    }

    /* Footer mobile fixes */
    .footer-al .container {
        padding: 0 16px !important;
    }
    
    .footer-bg {
        margin-left: 0 !important;
        width: 100% !important;
    }
}