/* General Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background-color: rgb(101, 201, 10);
    color: #000000;
    line-height: 1.8;
    padding: 20px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: rgb(101, 201, 10);
    border: 5px solid rgb(206, 230, 168);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Header Styles */
.header {
    text-align: center;
    padding: 30px 20px;
    background-color: rgba(206, 230, 168, 0.4);
    border: 4px solid rgb(206, 230, 168);
    border-radius: 8px;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2.5em;
    font-weight: bold;
    color: #000000;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3);
}

.header h2 {
    font-size: 1.5em;
    font-weight: bold;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.disclaimer {
    font-size: 1em;
    font-weight: bold;
    color: #cc0000;
    font-style: italic;
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    border: 2px solid rgb(206, 230, 168);
}

/* Print Section */
.print-section {
    text-align: center;
    margin: 20px 0;
}

.print-btn {
    background-color: rgba(206, 230, 168, 0.8);
    color: #000000;
    font-weight: bold;
    padding: 15px 30px;
    font-size: 1.2em;
    border: 3px solid rgb(206, 230, 168);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.print-btn:hover {
    background-color: rgb(206, 230, 168);
    transform: scale(1.05);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

/* Navigation Section */
.navigation {
    background-color: rgba(206, 230, 168, 0.4);
    border: 4px solid rgb(206, 230, 168);
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

.navigation h3 {
    font-size: 1.8em;
    font-weight: bold;
    color: #000000;
    margin-bottom: 20px;
    text-align: center;
}

.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.nav-btn {
    background-color: rgba(206, 230, 168, 0.8);
    color: #000000;
    font-weight: bold;
    padding: 12px 20px;
    font-size: 1em;
    border: 3px solid rgb(206, 230, 168);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover {
    background-color: rgb(206, 230, 168);
    transform: translateY(-2px);
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.3);
}

/* Content Sections */
.content-section {
    background-color: rgba(206, 230, 168, 0.3);
    border: 4px solid rgb(206, 230, 168);
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.content-section h2 {
    font-size: 2em;
    font-weight: bold;
    color: #000000;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 4px solid rgb(206, 230, 168);
}

.content-section h3 {
    font-size: 1.5em;
    font-weight: bold;
    color: #000000;
    margin: 25px 0 15px 0;
}

.content-section h4 {
    font-size: 1.3em;
    font-weight: bold;
    color: #000000;
    margin: 20px 0 10px 0;
}

.text-content p {
    font-size: 1.1em;
    font-weight: bold;
    color: #000000;
    margin: 15px 0;
    text-align: justify;
}

.text-content ul {
    margin: 15px 0 15px 30px;
    list-style-type: disc;
}

.text-content ul li {
    font-size: 1.05em;
    font-weight: bold;
    color: #000000;
    margin: 10px 0;
    line-height: 1.8;
}

.text-content ul li strong {
    color: #000000;
}

/* Example Boxes */
.example-box {
    background-color: rgba(255, 255, 255, 0.6);
    border: 3px solid rgb(206, 230, 168);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.example-box p {
    font-size: 1.05em;
    font-weight: bold;
    color: #000000;
    margin: 10px 0;
}

/* Case Law Boxes */
.case-box {
    background-color: rgba(255, 255, 255, 0.6);
    border: 4px solid rgb(206, 230, 168);
    border-left: 8px solid rgb(206, 230, 168);
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.case-box h4 {
    font-size: 1.4em;
    font-weight: bold;
    color: #000000;
    margin-bottom: 15px;
}

.case-box p {
    font-size: 1.05em;
    font-weight: bold;
    color: #000000;
    margin: 10px 0;
}

/* Flowchart Styles */
.flowchart-container {
    margin: 30px 0;
}

.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.flow-box {
    background-color: rgba(255, 255, 255, 0.7);
    border: 4px solid rgb(206, 230, 168);
    border-radius: 8px;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-weight: bold;
    color: #000000;
}

.flow-start {
    background-color: rgba(206, 230, 168, 0.8);
    border-width: 5px;
}

.flow-decision {
    background-color: rgba(255, 255, 255, 0.8);
}

.flow-result {
    background-color: rgba(255, 215, 0, 0.3);
    border-color: rgb(206, 230, 168);
    border-width: 5px;
}

.flow-end {
    background-color: rgba(144, 238, 144, 0.5);
    border-width: 5px;
}

.flow-arrow {
    font-size: 2em;
    font-weight: bold;
    color: #000000;
    margin: 5px 0;
}

.flowchart-note {
    background-color: rgba(255, 255, 255, 0.7);
    border: 3px solid rgb(206, 230, 168);
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.flowchart-note h4 {
    font-size: 1.3em;
    font-weight: bold;
    color: #000000;
    margin-bottom: 15px;
}

.flowchart-note ul {
    margin-left: 25px;
}

.flowchart-note ul li {
    font-size: 1.05em;
    font-weight: bold;
    color: #000000;
    margin: 10px 0;
}

/* Comparison Tables */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background-color: rgba(255, 255, 255, 0.8);
    border: 4px solid rgb(206, 230, 168);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.comparison-table thead {
    background-color: rgba(206, 230, 168, 0.9);
}

.comparison-table thead th {
    padding: 18px;
    text-align: left;
    font-size: 1.2em;
    font-weight: bold;
    color: #000000;
    border: 3px solid rgb(206, 230, 168);
}

.comparison-table tbody tr {
    border-bottom: 3px solid rgb(206, 230, 168);
}

.comparison-table tbody tr:nth-child(even) {
    background-color: rgba(206, 230, 168, 0.3);
}

.comparison-table tbody tr:hover {
    background-color: rgba(206, 230, 168, 0.5);
}

.comparison-table tbody td {
    padding: 15px;
    font-size: 1.05em;
    font-weight: bold;
    color: #000000;
    border: 2px solid rgb(206, 230, 168);
}

.comparison-table tbody td strong {
    color: #000000;
}

/* Q&A Section */
.qna-item {
    margin: 25px 0;
}

.question-btn {
    width: 100%;
    background-color: rgba(206, 230, 168, 0.7);
    color: #000000;
    font-weight: bold;
    padding: 18px 25px;
    font-size: 1.15em;
    border: 4px solid rgb(206, 230, 168);
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.question-btn:hover {
    background-color: rgb(206, 230, 168);
    transform: translateX(5px);
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.3);
}

.q-icon {
    font-weight: bold;
    color: #cc0000;
    margin-right: 10px;
}

.answer-box {
    display: none;
    background-color: rgba(255, 255, 255, 0.8);
    border: 4px solid rgb(206, 230, 168);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 25px;
    margin-top: -8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.answer-box.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.answer-box p {
    font-size: 1.05em;
    font-weight: bold;
    color: #000000;
    margin: 10px 0;
    line-height: 1.8;
}

/* Disclaimer Box */
.disclaimer-box {
    background-color: rgba(255, 255, 200, 0.7);
    border: 4px solid rgb(206, 230, 168);
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.disclaimer-box p {
    font-size: 1.05em;
    font-weight: bold;
    color: #cc0000;
    text-align: center;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
    background-color: rgba(206, 230, 168, 0.4);
    border: 4px solid rgb(206, 230, 168);
    border-radius: 8px;
}

.footer p {
    font-size: 1.1em;
    font-weight: bold;
    color: #000000;
    margin: 10px 0;
}

.footer-note {
    font-size: 0.95em;
    font-weight: bold;
    color: #1a1a1a;
    font-style: italic;
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        padding: 0;
    }
    
    .container {
        border: none;
        box-shadow: none;
        background-color: white;
    }
    
    .print-section,
    .navigation {
        display: none;
    }
    
    .content-section {
        page-break-inside: avoid;
        border: 2px solid #000;
    }
    
    .question-btn {
        background-color: #f0f0f0;
    }
    
    .answer-box {
        display: block !important;
        background-color: white;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .header h2 {
        font-size: 1.2em;
    }
    
    .nav-buttons {
        flex-direction: column;
    }
    
    .nav-btn {
        width: 100%;
    }
    
    .flow-box {
        width: 95%;
    }
    
    .comparison-table {
        font-size: 0.9em;
    }
    
    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 10px;
    }
}

@media screen and (max-width: 480px) {
    .header h1 {
        font-size: 1.5em;
    }
    
    .content-section h2 {
        font-size: 1.5em;
    }
    
    .content-section h3 {
        font-size: 1.2em;
    }
    
    .text-content p,
    .text-content ul li {
        font-size: 1em;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Styles */
::selection {
    background-color: rgba(206, 230, 168, 0.7);
    color: #000000;
}

::-moz-selection {
    background-color: rgba(206, 230, 168, 0.7);
    color: #000000;
}