/* Book Container */
.book-wrapper {
    background: #f5f5f5;
    padding: 40px 20px;
    min-height: 100vh;
}

.book {
    max-width: 210mm;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Page Styling - A4 Size */
.book-page {
    width: 210mm;
    min-height: 297mm;
    height: 297mm;
    padding: 20mm;
    padding-bottom: 30mm;
    margin: 0 auto 40px;
    background: white;
    position: relative;
    page-break-after: always;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid #ddd;
}

.book-page::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background-image: url('../images/jj.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.book-page:last-child {
    page-break-after: avoid;
    margin-bottom: 0;
}

/* Page Content */
.page-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
    margin-bottom: 20px;
}

.page-number {
    font-size: 14px;
    font-weight: bold;
    color: #666;
}

.section-title {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-body {
    flex: 1;
    padding: 20px 0;
    padding-bottom: 40px;
}

.page-footer {
    display: flex;
    justify-content: center;
    padding-top: 5px;
    padding-bottom: 15px;
    margin-top: 10px;
}

.footer-text {
    font-size: 12px;
    color: #999;
}

/* Cover Page */
.cover-page {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cover-page .page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.cover-image {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    margin-bottom: 40px;
}

.report-title {
    font-size: 72px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.report-subtitle {
    font-size: 32px;
    color: #666;
    margin-bottom: 30px;
}

.report-description {
    font-size: 18px;
    color: #999;
    max-width: 80%;
}

/* Section Divider */
.section-divider {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-divider .page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.section-divider .page-heading {
    font-size: 48px;
    text-align: center;
    color: #333;
}

/* Content Styling */
.page-heading {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-subheading {
    font-size: 24px;
    color: #666;
    margin-bottom: 20px;
    font-weight: normal;
}

.page-text {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.page-text p {
    margin-bottom: 1.5em;
    text-align: justify;
}

.page-text h1, .page-text h2, .page-text h3 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

/* Images */
.page-image {
    margin: 30px 0;
}

.page-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.page-image.image-top {
    margin-top: 0;
}

.page-image.image-bottom {
    margin-bottom: 0;
}

.page-image.image-left {
    float: left;
    margin-right: 30px;
    margin-bottom: 20px;
    max-width: 50%;
}

.page-image.image-right {
    float: right;
    margin-left: 30px;
    margin-bottom: 20px;
    max-width: 50%;
}

.page-image figcaption {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* Print Styles */
@media print {
    @page {
        size: A4;
        margin: 0;
    }
    
    body {
        background: white;
    }
    
    .no-print {
        display: none !important;
    }
    
    .book-wrapper {
        padding: 0;
        background: white;
    }
    
    .book {
        box-shadow: none;
    }
    
    .book-page {
        width: 210mm;
        min-height: 297mm;
        padding: 20mm;
        margin: 0;
        box-shadow: none;
        page-break-after: always;
        page-break-inside: avoid;
    }
    
    .book-page:last-child {
        page-break-after: avoid;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .book-page {
        width: 100%;
        min-height: auto;
        padding: 20px;
    }
    
    .report-title {
        font-size: 48px;
    }
    
    .report-subtitle {
        font-size: 24px;
    }
    
    .page-heading {
        font-size: 28px;
    }
    
    .page-subheading {
        font-size: 20px;
    }
    
    .page-image.image-left,
    .page-image.image-right {
        float: none;
        max-width: 100%;
        margin: 20px 0;
    }
}
