/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: rgb(51, 201, 51);
    color: #1a1a1a;
    line-height: 1.8;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 5px solid rgb(150, 85, 55);
}

/* Header Styles */
header {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgb(50, 185, 55), rgb(255, 33, 129));
    color: white;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 3px solid rgb(150, 85, 55);
}

header h1 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

header h2 {
    font-size: 24px;
    font-weight: bold;
    font-style: italic;
}

/* Print Button */
.print-section {
    text-align: center;
    margin: 20px 0;
}

.print-btn {
    background-color: rgb(50, 185, 55);
    color: white;
    font-weight: bold;
    font-size: 18px;
    padding: 12px 30px;
    border: 3px solid rgb(120, 65, 40);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.print-btn:hover {
    background-color: rgb(180, 105, 75);
    transform: scale(1.05);
}

/* Navigation Styles */
.navigation {
    background-color: rgb(101, 201, 150);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 3px solid rgb(150, 85, 55);
}

.navigation h3 {
    color: #1a1a1a;
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 15px;
    text-align: center;
}

.navigation button {
    background-color: rgb(150, 85, 55);
    color: white;
    font-weight: bold;
    font-size: 16px;
    padding: 10px 20px;
    margin: 5px;
    border: 2px solid rgb(120, 65, 40);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navigation button:hover {
    background-color: rgb(180, 105, 75);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Content Section Styles */
.content-section {
    margin-bottom: 40px;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 10px;
    border: 4px solid rgb(150, 85, 55);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.content-section h3 {
    color: rgb(150, 85, 55);
    font-weight: bold;
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid rgb(101, 201, 150);
}

.content-section h4 {
    color: rgb(120, 65, 40);
    font-weight: bold;
    font-size: 22px;
    margin: 20px 0 15px 0;
}

.content-section h5 {
    color: rgb(100, 55, 30);
    font-weight: bold;
    font-size: 20px;
    margin: 15px 0 10px 0;
}

.content-section p {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
    text-align: justify;
}

.content-section ul {
    margin-left: 25px;
    margin-bottom: 15px;
}

.content-section li {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Provision Box */
.provision-box {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 3px solid rgb(101, 201, 150);
    margin: 15px 0;
}

.provision-box p {
    margin-bottom: 15px;
}

/* Example Box */
.example-box {
    background-color: #fff9e6;
    padding: 20px;
    border-radius: 8px;
    border: 3px solid rgb(150, 85, 55);
    margin: 20px 0;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    border: 4px solid rgb(150, 85, 55);
    background-color: white;
}

thead {
    background-color: rgb(150, 85, 55);
    color: white;
}

th {
    padding: 15px;
    font-weight: bold;
    font-size: 18px;
    text-align: left;
    border: 2px solid rgb(120, 65, 40);
}

td {
    padding: 12px;
    font-weight: bold;
    font-size: 16px;
    border: 2px solid rgb(150, 85, 55);
}

tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

tbody tr:hover {
    background-color: rgba(101, 201, 150, 0.2);
}

/* Flowchart Styles */
.flowchart-container {
    margin: 30px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 3px solid rgb(150, 85, 55);
}

.flowchart-container h4 {
    text-align: center;
    color: rgb(150, 85, 55);
    font-weight: bold;
    font-size: 22px;
    margin-bottom: 20px;
}

.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.flow-box {
    background-color: white;
    border: 3px solid rgb(150, 85, 55);
    padding: 15px 25px;
    border-radius: 8px;
    margin: 10px 0;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    min-width: 300px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.flow-box.start {
    background-color: rgb(101, 201, 150);
    color: white;
    font-size: 18px;
}

.flow-box.end {
    background-color: rgb(150, 85, 55);
    color: white;
    font-size: 18px;
}

.flow-box.decision {
    background-color: #ffffcc;
    border-color: rgb(150, 85, 55);
}

.arrow {
    font-size: 30px;
    font-weight: bold;
    color: rgb(150, 85, 55);
    margin: 5px 0;
}

.arrow-split {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin: 10px 0;
}

.split-left, .split-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 45%;
}

.split-left span, .split-right span {
    font-weight: bold;
    font-size: 18px;
    color: rgb(150, 85, 55);
    margin: 5px 0;
}

.arrow-back {
    font-size: 30px;
    font-weight: bold;
    color: rgb(150, 85, 55);
    margin: 10px 0;
}

/* Case Box */
.case-box {
    background-color: #e8f5e9;
    padding: 25px;
    border-radius: 10px;
    border: 4px solid rgb(150, 85, 55);
    margin: 25px 0;
}

.case-box h4 {
    color: rgb(150, 85, 55);
    font-weight: bold;
    font-size: 24px;
    margin-bottom: 15px;
}

/* Q&A Styles */
.qa-container {
    margin: 20px 0;
}

.question-box {
    margin-bottom: 15px;
    border: 3px solid rgb(150, 85, 55);
    border-radius: 8px;
    overflow: hidden;
}

.question-btn {
    width: 100%;
    background-color: rgb(101, 201, 150);
    color: #1a1a1a;
    font-weight: bold;
    font-size: 18px;
    padding: 15px 20px;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.question-btn:hover {
    background-color: rgb(120, 220, 170);
}

.answer-box {
    display: none;
    background-color: white;
    padding: 20px;
    border-top: 3px solid rgb(150, 85, 55);
}

.answer-box.active {
    display: block;
}

.answer-box p {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
}

.answer-box ul {
    margin-left: 25px;
}

.answer-box li {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 25px;
    background-color: rgb(150, 85, 55);
    color: white;
    border-radius: 10px;
    margin-top: 40px;
    border: 3px solid rgb(120, 65, 40);
}

footer p {
    font-weight: bold;
    font-size: 16px;
    margin: 8px 0;
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        border: 2px solid black;
    }
    
    .print-section, .navigation {
        display: none;
    }
    
    .content-section {
        page-break-inside: avoid;
    }
    
    .flow-box, .case-box, .example-box {
        page-break-inside: avoid;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 32px;
    }
    
    header h2 {
        font-size: 20px;
    }
    
    .navigation button {
        width: 100%;
        margin: 5px 0;
    }
    
    .flow-box {
        min-width: 200px;
        font-size: 14px;
    }
    
    .arrow-split {
        flex-direction: column;
    }
    
    .split-left, .split-right {
        width: 100%;
    }
    
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 8px;
    }
}