/* Shared Tutorial Styles */
.tutorial-layout {
    display: flex;
    gap: 0;
    max-width: 1600px;
    margin: 0 auto;
    background: white;
    min-height: calc(100vh - 100px);
}

/* Right Ad Sidebar */
.ad-sidebar-right {
    width: 180px;
    background: #f8f9fc;
    border-left: 1px solid #e8eaed;
    padding: 15px 10px;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    flex-shrink: 0;
    order: 3;
}

.ad-sidebar-left .ad-title {
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 15px;
    text-align: center;
}

.ad-placeholder {
    background: #ffffff;
    border: 2px dashed #e8eaed;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    color: #999;
    font-size: 0.75em;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

.google-ad-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 20px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tutorial-sidebar {
    width: 280px;
    background: #f8f9fc;
    border-right: 1px solid #e8eaed;
    padding: 30px 0;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.tutorial-sidebar h3 {
    color: #1e3c72;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 20px;
    margin-bottom: 15px;
    font-weight: 700;
}

.tutorial-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.tutorial-nav li {
    margin: 0;
}

.tutorial-nav a {
    display: block;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    font-size: 0.95em;
}

.tutorial-nav a:hover {
    background: #ffffff;
    color: #667eea;
    border-left-color: #667eea;
}

.tutorial-nav a.active {
    background: #ffffff;
    color: #667eea;
    border-left-color: #667eea;
    font-weight: 600;
}

.tutorial-content {
    flex: 1;
    padding: 40px 60px;
    max-width: 900px;
}

.breadcrumb {
    font-size: 0.9em;
    color: #888;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.tutorial-content h1 {
    color: #1e3c72;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.visa-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 30px;
}

.tutorial-content h2 {
    color: #1e3c72;
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 15px;
}

.tutorial-content h3 {
    color: #667eea;
    font-size: 1.3em;
    margin-top: 25px;
    margin-bottom: 12px;
}

.tutorial-content p {
    color: #555;
    line-height: 1.8;
    font-size: 1.05em;
    margin-bottom: 20px;
}

.tutorial-content p.intro {
    font-size: 1.15em;
    color: #444;
    line-height: 1.9;
}

.tutorial-content ul, .tutorial-content ol {
    margin: 20px 0;
    padding-left: 30px;
    color: #555;
    line-height: 1.8;
}

.tutorial-content li {
    margin-bottom: 10px;
}

.info-box {
    background: #f0f7ff;
    border-left: 4px solid #667eea;
    padding: 20px 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.info-box strong {
    color: #1e3c72;
}

.success-box {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    padding: 20px 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.warning-box {
    background: #fef3f2;
    border-left: 4px solid #ef4444;
    padding: 20px 25px;
    border-radius: 8px;
    margin: 30px 0;
}

.checklist {
    background: #f8f9fc;
    border-radius: 12px;
    padding: 25px;
    margin: 25px 0;
}

.checklist-item {
    padding: 15px 0;
    border-bottom: 1px solid #e8eaed;
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item strong {
    color: #1e3c72;
    display: block;
    margin-bottom: 8px;
    font-size: 1.05em;
}

.checklist-item p {
    margin: 0;
    color: #666;
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid #e8eaed;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.nav-btn.prev {
    background: #e8eaed;
    color: #555;
}

.nav-btn.prev:hover {
    background: #d1d5db;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
    display: block;
    opacity: 1;
}

@media (max-width: 1200px) {
    .ad-sidebar-right {
        display: none;
    }
    
    .tutorial-layout {
        max-width: 1400px;
    }
}

@media (max-width: 1024px) {
    .tutorial-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        height: 100vh;
        z-index: 999;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }

    .tutorial-sidebar.mobile-open {
        left: 0;
    }

    .tutorial-content {
        padding: 30px 20px;
        width: 100%;
    }

    .tutorial-content h1 {
        font-size: 2em;
    }

    .tutorial-content h2 {
        font-size: 1.5em;
    }

    .tutorial-content h3 {
        font-size: 1.2em;
    }

    .nav-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .nav-btn {
        width: 100%;
        justify-content: center;
    }

    .mobile-sidebar-toggle {
        display: block;
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: #667eea;
        color: white;
        border: none;
        padding: 15px 20px;
        border-radius: 50px;
        font-weight: 600;
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        cursor: pointer;
        z-index: 998;
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    .tutorial-content {
        padding: 20px 15px;
    }

    .tutorial-content h1 {
        font-size: 1.75em;
    }

    .tutorial-content p,
    .tutorial-content li {
        font-size: 1em;
    }

    .visa-badge {
        font-size: 0.75em;
        padding: 5px 12px;
    }

    table {
        font-size: 0.85em;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table thead {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    table tbody {
        display: table;
        width: 100%;
        table-layout: fixed;
    }

    .info-box,
    .warning-box,
    .success-box {
        padding: 15px 18px;
    }
}

@media (min-width: 1025px) {
    .mobile-sidebar-toggle {
        display: none;
    }
}
