/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: rgb(101, 201, 150);
    color: #1a1a1a;
    line-height: 1.8;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: rgb(101, 201, 150);
    padding: 30px;
}

/* Header Styles */
header {
    text-align: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 5px solid rgb(150, 85, 55);
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 2.8em;
    font-weight: bold;
    color: #003366;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
}

.disclaimer {
    font-size: 1.1em;
    font-weight: bold;
    color: #8B0000;
    font-style: italic;
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
}

.print-btn {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 1.2em;
    font-weight: bold;
    background-color: rgb(150, 85, 55);
    color: white;
    border: 3px solid #003366;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.print-btn:hover {
    background-color: rgb(180, 105, 75);
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Navigation Styles */
.navigation {
    background-color: rgba(255, 255, 255, 0.2);
    border: 4px solid rgb(150, 85, 55);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.navigation h2 {
    font-size: 1.8em;
    font-weight: bold;
    color: #003366;
    margin-bottom: 20px;
    text-align: center;
}

.navigation ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.navigation li button {
    width: 100%;
    padding: 12px 20px;
    font-size: 1.1em;
    font-weight: bold;
    background-color: rgb(150, 85, 55);
    color: white;
    border: 2px solid #003366;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.navigation li button:hover {
    background-color: rgb(180, 105, 75);
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Main Content Styles */
main {
    background-color: rgba(255, 255, 255, 0.25);
    border: 5px solid rgb(150, 85, 55);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.content-section {
    margin-bottom: 50px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.4);
    border: 3px solid rgb(150, 85, 55);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.content-section h2 {
    font-size: 2.2em;
    font-weight: bold;
    color: #003366;
    margin-bottom: 20px;
    border-bottom: 4px solid rgb(150, 85, 55);
    padding-bottom: 10px;
}

.content-section h3 {
    font-size: 1.7em;
    font-weight: bold;
    color: #004d80;
    margin-top: 25px;
    margin-bottom: 15px;
}

.content-section h4 {
    font-size: 1.4em;
    font-weight: bold;
    color: #005580;
    margin-top: 20px;
    margin-bottom: 12px;
}

.content-section p {
    font-size: 1.15em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
    text-align: justify;
}

.content-section ul, .content-section ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

.content-section li {
    font-size: 1.1em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

/* Provision Cards */
.provision-card {
    background-color: rgba(255, 255, 255, 0.5);
    border: 3px solid rgb(150, 85, 55);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.provision-card h3 {
    font-size: 1.5em;
    font-weight: bold;
    color: #8B0000;
    margin-bottom: 12px;
}

.provision-card p {
    font-size: 1.1em;
    font-weight: 600;
    color: #1a1a1a;
}

/* Example Cards */
.example-card {
    background-color: rgba(255, 255, 255, 0.5);
    border: 3px solid rgb(150, 85, 55);
    border-left: 8px solid #8B0000;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.example-card h3 {
    font-size: 1.5em;
    font-weight: bold;
    color: #8B0000;
    margin-bottom: 15px;
}

.example-card p {
    font-size: 1.1em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

/* Case Card */
.case-card {
    background-color: rgba(255, 255, 255, 0.6);
    border: 4px solid rgb(150, 85, 55);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.case-card h3 {
    font-size: 1.6em;
    font-weight: bold;
    color: #003366;
    margin-bottom: 15px;
}

.case-card p {
    font-size: 1.15em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

/* Ruling Box */
.ruling-box {
    background-color: rgba(139, 0, 0, 0.15);
    border: 4px solid #8B0000;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.ruling-box h4 {
    font-size: 1.5em;
    font-weight: bold;
    color: #8B0000;
    margin-bottom: 12px;
}

.ruling-box p {
    font-size: 1.2em;
    font-weight: bold;
    color: #1a1a1a;
}

/* Flowchart Styles */
.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
}

.flow-box {
    background-color: rgba(255, 255, 255, 0.7);
    border: 4px solid rgb(150, 85, 55);
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
    width: 80%;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.flow-box strong {
    font-size: 1.3em;
    font-weight: bold;
    color: #003366;
    display: block;
    margin-bottom: 10px;
}

.flow-box p {
    font-size: 1.1em;
    font-weight: 600;
    color: #1a1a1a;
    margin: 5px 0;
}

.flow-box.decision {
    background-color: rgba(255, 200, 0, 0.3);
    border-color: #FFA500;
}

.arrow {
    font-size: 2.5em;
    font-weight: bold;
    color: rgb(150, 85, 55);
    margin: 5px 0;
}

.flow-split {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 20px;
}

.flow-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 45%;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
    border: 4px solid rgb(150, 85, 55);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.7);
}

thead {
    background-color: rgb(150, 85, 55);
}

thead th {
    font-size: 1.3em;
    font-weight: bold;
    color: white;
    padding: 15px;
    text-align: left;
    border: 2px solid #003366;
}

tbody tr {
    border-bottom: 2px solid rgb(150, 85, 55);
}

tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.5);
}

tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

tbody td {
    font-size: 1.1em;
    font-weight: 600;
    color: #1a1a1a;
    padding: 12px 15px;
    border: 1px solid rgb(150, 85, 55);
}

tbody td:first-child {
    font-weight: bold;
    color: #003366;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 30px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 80px;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: rgb(150, 85, 55);
}

.timeline-item {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.timeline-marker {
    width: 100px;
    height: 100px;
    background-color: rgb(150, 85, 55);
    color: white;
    font-size: 1.3em;
    font-weight: bold;
    border: 4px solid #003366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.timeline-content {
    margin-left: 30px;
    background-color: rgba(255, 255, 255, 0.6);
    border: 3px solid rgb(150, 85, 55);
    border-radius: 10px;
    padding: 20px;
    flex-grow: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.timeline-content h4 {
    font-size: 1.5em;
    font-weight: bold;
    color: #003366;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 1.1em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.timeline-content ul {
    margin-left: 20px;
    margin-top: 10px;
}

.timeline-content li {
    font-size: 1.05em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

/* Question Cards */
.question-card {
    background-color: rgba(255, 255, 255, 0.6);
    border: 4px solid rgb(150, 85, 55);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.question-card h3 {
    font-size: 1.6em;
    font-weight: bold;
    color: #8B0000;
    margin-bottom: 15px;
}

.question-card p {
    font-size: 1.2em;
    font-weight: bold;
    color: #003366;
    margin-bottom: 15px;
}

.solution-btn {
    padding: 12px 25px;
    font-size: 1.15em;
    font-weight: bold;
    background-color: rgb(150, 85, 55);
    color: white;
    border: 3px solid #003366;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
}

.solution-btn:hover {
    background-color: rgb(180, 105, 75);
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.solution {
    margin-top: 20px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 3px solid #228B22;
    border-left: 8px solid #228B22;
    border-radius: 8px;
    transition: all 0.5s ease;
}

.solution.hidden {
    display: none;
}

.solution p {
    font-size: 1.1em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.solution ul {
    margin-left: 25px;
    margin-top: 10px;
}

.solution li {
    font-size: 1.05em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 4px solid rgb(150, 85, 55);
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

footer p {
    font-size: 1.1em;
    font-weight: bold;
    color: #003366;
    margin: 10px 0;
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        color: black;
    }
    
    .container {
        background-color: white;
    }
    
    .navigation, .print-btn {
        display: none;
    }
    
    .content-section {
        page-break-inside: avoid;
        border: 2px solid black;
    }
    
    .solution {
        display: block !important;
    }
    
    .solution-btn {
        display: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }
    
    .navigation ul {
        grid-template-columns: 1fr;
    }
    
    .flow-box {
        width: 95%;
    }
    
    .flow-split {
        flex-direction: column;
    }
    
    .flow-branch {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .timeline::before {
        left: 40px;
    }
    
    .timeline-marker {
        width: 70px;
        height: 70px;
        font-size: 1em;
    }
    
    .timeline-content {
        margin-left: 15px;
    }
    
    table {
        font-size: 0.9em;
    }
}