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

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.guide-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.guide-header {
    background: white;
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
}

.back-button {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #5568d3;
    transform: translateY(-50%) scale(1.05);
}

.guide-header h1 {
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
}

/* Book Wrapper */
.book-wrapper {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

/* Page Navigation */
.page-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.nav-button {
    padding: 12px 24px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-indicator {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Current Section Display */
.current-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 5px solid #667eea;
    text-align: center;
}

.section-label {
    color: #666;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

#current-section-title {
    color: #667eea;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

/* Book Pages */
.book-pages {
    position: relative;
    min-height: 600px;
}

.page {
    display: none;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-content {
    padding: 20px;
}

.page-content h2 {
    color: #667eea;
    font-size: 2rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
}

.page-content h3 {
    color: #764ba2;
    font-size: 1.5rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.page-content h4 {
    color: #333;
    font-size: 1.2rem;
    margin-top: 15px;
    margin-bottom: 10px;
}

.page-content p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.8;
}

.page-content ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.page-content li {
    margin-bottom: 8px;
    color: #555;
}

/* Content Sections */
.content-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 4px solid #667eea;
}

.intro-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
}

/* Info Boxes */
.info-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.info-box h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.info-box ul {
    list-style: none;
    margin-left: 0;
}

.info-box li {
    color: white;
    padding: 8px 0;
    font-size: 1.05rem;
}

.tip-box {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.highlight-box {
    background: #d1ecf1;
    border-left: 5px solid #17a2b8;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    color: #0c5460;
}

/* Footer */
.guide-footer {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.guide-footer p {
    margin: 10px 0;
    color: #555;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .guide-header h1 {
        font-size: 1.8rem;
    }

    .back-button {
        position: static;
        transform: none;
        margin-bottom: 15px;
        display: inline-block;
    }

    .book-wrapper {
        padding: 20px;
    }

    .page-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .nav-button {
        width: 100%;
    }

    .page-content h2 {
        font-size: 1.5rem;
    }

    .page-content h3 {
        font-size: 1.3rem;
    }

    #current-section-title {
        font-size: 1.4rem;
    }
}

/* Small mobile devices - hide current section */
@media (max-width: 480px) {
    .current-section {
        display: none;
    }

    .book-wrapper {
        padding: 15px;
    }

    .page-navigation {
        padding: 15px;
    }

    .page-content {
        padding: 10px;
    }

    .page-content h2 {
        font-size: 1.3rem;
    }

    .page-content h3 {
        font-size: 1.1rem;
    }

    .page-content h4 {
        font-size: 1rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .page-navigation,
    .back-button,
    .guide-footer {
        display: none;
    }

    .page {
        display: block !important;
        page-break-after: always;
    }

    .book-wrapper {
        box-shadow: none;
        padding: 0;
    }
}