/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #8b0000 0%, #a52a2a 50%, #dc143c 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.header-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header-title i {
    font-size: 2.5rem;
}

.header-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.header-image {
    margin: 30px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-indicator {
    margin-top: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.scroll-indicator i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.8);
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-indicator i:hover {
    color: white;
    transform: scale(1.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Navigation Styles */
.nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px 0;
}

.nav-link {
    text-decoration: none;
    color: #8b0000;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: #8b0000;
    color: white;
    transform: translateY(-2px);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
    color: #2d3748;
}

/* Overview Section */
.overview {
    background: white;
}

.overview-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.overview-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #4a5568;
}

.requirements {
    background: #f7fafc;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #8b0000;
}

.requirements h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.requirements ul {
    list-style: none;
    padding-left: 0;
}

.requirements li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #4a5568;
}

.requirements li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #48bb78;
    font-weight: bold;
}

/* Steps Section */
.steps {
    background: #f8fafc;
}

.steps-container {
    max-width: 900px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.step-number {
    background: linear-gradient(135deg, #8b0000 0%, #a52a2a 50%, #dc143c 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.step-description {
    margin-bottom: 20px;
}

.step-description p {
    color: #4a5568;
    margin-bottom: 15px;
}

.code-block {
    background: #1a202c;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    overflow-x: auto;
    border-left: 4px solid #8b0000;
}

.code-block code {
    color: #68d391;
    white-space: pre-line;
}

.step-image {
    width: 500px;
    flex-shrink: 0;
}

.image-placeholder {
    background: #f7fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    color: #a0aec0;
    transition: all 0.3s ease;
}

.image-placeholder:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.image-placeholder i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.image-placeholder p {
    font-size: 0.9rem;
    margin: 0;
}

/* Troubleshooting Section */
.troubleshooting {
    background: white;
}

/* Conclusion Section */
.conclusion {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.conclusion-content {
    max-width: 800px;
    margin: 0 auto;
}

.conclusion-text p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 30px;
    line-height: 1.7;
}

.note-box, .resources-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-left: 4px solid #8b0000;
}

.note-box {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.resources-box {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.note-box h3, .resources-box h3 {
    color: #2d3748;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.note-box h3 i {
    color: #f59e0b;
}

.resources-box h3 i {
    color: #10b981;
}

.note-box p, .resources-box p {
    color: #4a5568;
    margin: 0;
    line-height: 1.6;
}

.resources-box a {
    color: #8b0000;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.resources-box a:hover {
    color: #a52a2a;
    border-bottom-color: #a52a2a;
}

.troubleshooting-content {
    max-width: 800px;
    margin: 0 auto;
}

.troubleshooting-item {
    background: #fff5f5;
    border-left: 4px solid #f56565;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
}

.troubleshooting-item h3 {
    color: #c53030;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.troubleshooting-item p {
    color: #4a5568;
    margin-bottom: 10px;
}

.troubleshooting-item code {
    background: #1a202c;
    color: #e2e8f0;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Footer Styles */
.footer {
    background: #2d3748;
    color: #a0aec0;
    text-align: center;
    padding: 30px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 10px;
        padding: 15px 0;
    }
    
    .overview-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .step {
        flex-direction: column;
        gap: 20px;
    }
    
    .step-image {
        width: 100%;
        max-width: 500px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .step {
        padding: 25px;
    }
    
    .code-block {
        padding: 15px;
        font-size: 0.9rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #8b0000;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a52a2a;
}

/* Print Styles for PDF Generation */
@media print {
    /* Reset margins and ensure full page usage */
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    
    @page {
        margin: 0.5in !important;
        size: letter !important;
    }
    
    body {
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        color: black !important;
        font-size: 12pt !important;
        line-height: 1.4 !important;
        font-family: Arial, sans-serif !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Remove interactive elements */
    .nav, .scroll-indicator, .progress-bar {
        display: none !important;
    }
    
    /* Compact header for print */
    .header {
        background: white !important;
        color: black !important;
        padding: 10px 0 !important;
        text-align: center !important;
        page-break-inside: avoid !important;
    }
    
    .header-title {
        font-size: 24pt !important;
        color: #8b0000 !important;
        margin-bottom: 10px !important;
        font-weight: bold !important;
    }
    
    .header-title i {
        display: none !important;
    }
    
    .header-subtitle {
        font-size: 11pt !important;
        color: #333 !important;
        margin-bottom: 10px !important;
        text-align: justify !important;
    }
    
    .header-image {
        margin: 12px 0 !important;
        text-align: center !important;
    }
    
    .header-image img {
        width: 500px !important;
        height: auto !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
    
    /* Compact section styling */
    .section {
        padding: 15px 0 !important;
        margin-bottom: 0 !important;
    }
    
    .section-title {
        font-size: 18pt !important;
        color: #8b0000 !important;
        margin: 0 0 15px 0 !important;
        font-weight: bold !important;
        page-break-after: avoid !important;
        text-align: center !important;
    }
    
    /* Overview section - make it more compact */
    .overview {
        padding: 10px 0 !important;
    }
    
    .overview-content {
        display: block !important;
    }
    
    .overview-text {
        margin-bottom: 12px !important;
    }
    
    .overview-text p {
        font-size: 11pt !important;
        margin-bottom: 10px !important;
        text-align: justify !important;
    }
    
    .overview-image {
        text-align: center !important;
        margin: 10px 0 !important;
    }
    
    .overview-image img {
        max-width: 60% !important;
        height: auto !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        min-width: 350px !important;
    }
    
    /* Compact steps section */
    .steps {
        padding: 10px 0 !important;
    }
    
    .steps-container {
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .step {
        display: block !important;
        background: white !important;
        border: 1px solid #ddd !important;
        padding: 15px !important;
        margin-bottom: 20px !important;
        page-break-inside: avoid !important;
        box-shadow: none !important;
    }
    
    .step-number {
        background: #8b0000 !important;
        color: white !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 13pt !important;
        font-weight: bold !important;
        margin-right: 12px !important;
        margin-bottom: 10px !important;
        float: left !important;
    }
    
    .step-content {
        flex: 1 !important;
    }
    
    .step-title {
        font-size: 13pt !important;
        color: #8b0000 !important;
        margin: 0 0 8px 0 !important;
        font-weight: bold !important;
    }
    
    .step-description {
        margin-bottom: 8px !important;
    }
    
    .step-description p {
        font-size: 11pt !important;
        color: #333 !important;
        margin-bottom: 8px !important;
        text-align: justify !important;
    }
    
    .code-block {
        background: #f5f5f5 !important;
        color: #333 !important;
        border: 1px solid #ccc !important;
        padding: 8px !important;
        margin: 8px 0 !important;
        font-size: 10pt !important;
        page-break-inside: avoid !important;
        font-family: monospace !important;
    }
    
    .code-block code {
        color: #333 !important;
        background: none !important;
    }
    
    .step-image {
        width: 100% !important;
        text-align: center !important;
        margin: 15px 0 !important;
        clear: both !important;
    }
    
    .step-image img {
        width: 650px !important;
        height: auto !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        page-break-inside: avoid !important;
        max-height: 450px !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    /* Compact requirements list */
    .requirements {
        background: #f9f9f9 !important;
        border: 1px solid #ddd !important;
        padding: 10px !important;
        margin: 10px 0 !important;
    }
    
    .requirements h3 {
        color: #8b0000 !important;
        font-size: 11pt !important;
        margin: 0 0 6px 0 !important;
        font-weight: bold !important;
    }
    
    .requirements ul {
        margin: 0 !important;
        padding-left: 15px !important;
    }
    
    .requirements li {
        font-size: 11pt !important;
        color: #333 !important;
        margin-bottom: 4px !important;
        list-style-type: disc !important;
        padding-left: 0 !important;
    }
    
    .requirements li::before {
        display: none !important;
    }
    
    /* Compact troubleshooting section */
    .troubleshooting {
        padding: 10px 0 !important;
    }
    
    .troubleshooting-content {
        margin: 0 !important;
    }
    
    .troubleshooting-item {
        background: #f9f9f9 !important;
        border: 1px solid #ddd !important;
        padding: 10px !important;
        margin-bottom: 10px !important;
        page-break-inside: avoid !important;
    }
    
    .troubleshooting-item h3 {
        color: #8b0000 !important;
        font-size: 11pt !important;
        margin: 0 0 6px 0 !important;
        font-weight: bold !important;
    }
    
    .troubleshooting-item h3 i {
        display: none !important;
    }
    
    .troubleshooting-item p {
        font-size: 10pt !important;
        color: #333 !important;
        margin: 0 !important;
    }
    
    .troubleshooting-item code {
        background: #e8e8e8 !important;
        color: #333 !important;
        padding: 2px 4px !important;
        font-size: 9pt !important;
        font-family: monospace !important;
    }
    
    /* Compact conclusion section */
    .conclusion {
        background: white !important;
        padding: 10px 0 !important;
    }
    
    .conclusion-content {
        margin: 0 !important;
    }
    
    .conclusion-text p {
        font-size: 10pt !important;
        color: #333 !important;
        margin-bottom: 8px !important;
        text-align: justify !important;
    }
    
    .note-box, .resources-box {
        background: #f9f9f9 !important;
        border: 1px solid #ddd !important;
        padding: 10px !important;
        margin-bottom: 10px !important;
        page-break-inside: avoid !important;
    }
    
    .note-box h3, .resources-box h3 {
        color: #8b0000 !important;
        font-size: 11pt !important;
        margin: 0 0 6px 0 !important;
        font-weight: bold !important;
    }
    
    .note-box h3 i, .resources-box h3 i {
        display: none !important;
    }
    
    .note-box p, .resources-box p {
        font-size: 10pt !important;
        color: #333 !important;
        margin: 0 !important;
    }
    
    .resources-box a {
        color: #8b0000 !important;
        text-decoration: underline !important;
    }
    
    /* Compact footer */
    .footer {
        background: white !important;
        color: #666 !important;
        border-top: 1px solid #ddd !important;
        padding: 8px 0 !important;
        font-size: 9pt !important;
        text-align: center !important;
    }
    
    /* Smart page breaks */
    .step:nth-child(4n) {
        page-break-after: auto !important;
    }
    
    .section {
        page-break-inside: avoid !important;
    }
    
    /* Remove animations and transitions */
    *, *::before, *::after {
        animation-duration: 0s !important;
        animation-delay: 0s !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
    
    /* Ensure good text justification */
    p {
        text-align: justify !important;
        hyphens: auto !important;
    }
}