.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    overflow: visible !important;
}

.main-content {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    align-items: flex-start;
}


.tutorial-section {
    flex: 1;
    min-width: 0;
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
}


.download-sidebar {
    flex: 0 0 250px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    position: sticky;
    top: 80px;
    align-self: start;
}


.main-content.no-sidebar {
    justify-content: center;
}

.main-content.no-sidebar .tutorial-section {
    max-width: 900px;
    width: 100%;
    flex: none;
}

.sidebar-header {
    margin-bottom: 15px;
}

.section-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 {
    color: var(--dark-color);
    font-size: 1.8rem;
}

.section-header i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.tutorial-step {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.tutorial-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.step-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.step-number {
    background-color: var(--primary-color);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-title {
    font-size: 1.4rem;
    color: var(--dark-color);
}

.step-content {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.7;
}

.step-image {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 15px 0;
    display: block;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.step-image.enlarged {
    transform: scale(1.5);
    position: relative;
    z-index: 10;
    cursor: zoom-out;
}

.image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    font-style: italic;
    margin-top: 5px;
}

.notes-section {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 50px;
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.note-item {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

.note-item.warning {
    border-left-color: #f39c12;
}

.note-item.warning .note-title {
    color: #f39c12;
}

.note-item.success {
    border-left-color: var(--secondary-color);
}

.note-item.success .note-title {
    color: var(--secondary-color);
}

.note-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.note-content {
    color: #555;
    font-size: 0.95rem;
}

.content-expand-section {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: #ffffff;
    border-radius: var(--radius);
    border: 1px solid #eee;
}

.expand-btn {
    background: #ffffff;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 12px 30px;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.expand-btn:hover {
    background: #f8f9fa;
}

.expand-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.expand-btn.loading {
    cursor: wait;
}

.expand-btn i {
    transition: transform 0.3s ease;
}

.expand-btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.permission-alert {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: var(--radius);
    margin: 20px 0;
    text-align: center;
}

.permission-alert .btn-upgrade {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.permission-alert .btn-upgrade:hover {
    background-color: var(--secondary-color);
}

.hidden-content {
    display: none;
}

.hidden-content.visible {
    display: block;
}

.visitor-prompt {
    padding: 30px;
    text-align: center;
    background: #f8f9fa;
    border-radius: var(--radius);
}

.visitor-prompt p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.download-locked {
    text-align: center;
    padding: 15px;
}

.download-locked p {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.seo-summary {
    margin-bottom: 20px;
}

.seo-summary p {
    line-height: 1.8;
    color: #444;
}

.preview-content {
    margin-bottom: 20px;
}