/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, rgb(30, 60, 114) 0%, rgb(42, 82, 152) 50%, rgb(25, 55, 109) 100%);
    color: rgb(255, 255, 255);
    line-height: 1.8;
    padding: 20px;
    min-height: 100vh;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
        padding: 0;
    }
    
    .no-print {
        display: none !important;
    }
    
    .content-section {
        page-break-inside: avoid;
        border: 1px solid #333 !important;
        background: white !important;
    }
    
    .info-table {
        border: 2px solid #333 !important;
    }
    
    .qa-answer {
        display: block !important;
    }
    
    h1, h2, h3, h4 {
        color: #000 !important;
    }
}

/* Print Button */
.print-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.print-btn {
    background: linear-gradient(135deg, rgb(76, 175, 80), rgb(56, 142, 60));
    color: white;
    border: 3px solid rgb(46, 125, 50);
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.print-btn:hover {
    background: linear-gradient(135deg, rgb(56, 142, 60), rgb(46, 125, 50));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgb(25, 50, 95) 0%, rgb(35, 65, 115) 100%);
    border: 5px solid rgb(100, 150, 220);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Header */
.main-header {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgb(63, 81, 181), rgb(48, 63, 159));
    border: 4px solid rgb(92, 107, 192);
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.main-header h1 {
    font-size: 48px;
    font-weight: bold;
    color: rgb(255, 255, 255);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 22px;
    font-weight: bold;
    color: rgb(255, 213, 79);
    margin-bottom: 15px;
}

.disclaimer {
    font-size: 16px;
    font-weight: bold;
    color: rgb(255, 171, 64);
    background: rgba(255, 87, 34, 0.2);
    padding: 12px;
    border-radius: 8px;
    border: 2px solid rgb(255, 87, 34);
    margin-top: 15px;
}

/* Navigation */
.navigation {
    background: linear-gradient(135deg, rgb(56, 142, 142), rgb(38, 166, 154));
    border: 4px solid rgb(77, 182, 172);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navigation h2 {
    font-size: 28px;
    font-weight: bold;
    color: rgb(255, 255, 255);
    margin-bottom: 20px;
    text-align: center;
}

.nav-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.nav-buttons button {
    background: linear-gradient(135deg, rgb(33, 150, 243), rgb(21, 101, 192));
    color: rgb(255, 255, 255);
    border: 3px solid rgb(66, 165, 245);
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.nav-buttons button:hover {
    background: linear-gradient(135deg, rgb(21, 101, 192), rgb(13, 71, 161));
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Content Sections */
.content-section {
    background: linear-gradient(135deg, rgb(40, 70, 120), rgb(50, 85, 140));
    border: 4px solid rgb(100, 150, 220);
    border-radius: 15px;
    padding: 35px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    scroll-margin-top: 100px;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    color: rgb(255, 235, 59);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 4px solid rgb(255, 193, 7);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

/* Info Boxes */
.info-box {
    background: linear-gradient(135deg, rgb(30, 55, 100), rgb(40, 70, 120));
    border: 3px solid rgb(85, 130, 200);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.info-box h3 {
    font-size: 26px;
    font-weight: bold;
    color: rgb(129, 212, 250);
    margin-bottom: 18px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.info-box h4 {
    font-size: 22px;
    font-weight: bold;
    color: rgb(255, 241, 118);
    margin-top: 15px;
    margin-bottom: 12px;
}

.info-box ul {
    list-style-type: none;
    padding-left: 0;
}

.info-box ul li {
    font-size: 17px;
    font-weight: bold;
    color: rgb(255, 255, 255);
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
}

.info-box ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: rgb(255, 193, 7);
    font-size: 20px;
    font-weight: bold;
}

.info-box p {
    font-size: 17px;
    font-weight: bold;
    color: rgb(255, 255, 255);
    margin-bottom: 12px;
}

/* Definition Items */
.definition-item {
    background: rgba(63, 81, 181, 0.3);
    border: 2px solid rgb(121, 134, 203);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Tables */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgb(25, 45, 85);
    border: 4px solid rgb(100, 150, 220);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.info-table thead {
    background: linear-gradient(135deg, rgb(63, 81, 181), rgb(48, 63, 159));
}

.info-table thead th {
    padding: 18px;
    text-align: left;
    font-weight: bold;
    font-size: 18px;
    color: rgb(255, 255, 255);
    border-bottom: 3px solid rgb(100, 150, 220);
}

.info-table tbody tr {
    border-bottom: 2px solid rgb(70, 110, 180);
    transition: background 0.3s ease;
}

.info-table tbody tr:hover {
    background: rgba(63, 81, 181, 0.3);
}

.info-table tbody td {
    padding: 15px 18px;
    font-size: 16px;
    font-weight: bold;
    color: rgb(255, 255, 255);
}

/* Calculation Table */
.calculation-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: rgb(25, 45, 85);
    border: 3px solid rgb(100, 150, 220);
    border-radius: 8px;
    overflow: hidden;
}

.calculation-table tr {
    border-bottom: 2px solid rgb(70, 110, 180);
}

.calculation-table td {
    padding: 12px 15px;
    font-size: 16px;
    font-weight: bold;
    color: rgb(255, 255, 255);
}

.calculation-table td:first-child {
    width: 70%;
}

.calculation-table td:last-child {
    text-align: right;
    color: rgb(255, 213, 79);
}

.calculation-table .total-row {
    background: linear-gradient(135deg, rgb(76, 175, 80), rgb(56, 142, 60));
    border-top: 3px solid rgb(129, 199, 132);
}

.calculation-table .total-row td {
    font-size: 18px;
    font-weight: bold;
    color: rgb(255, 255, 255);
}

/* Example Boxes */
.example-box {
    background: linear-gradient(135deg, rgb(55, 71, 79), rgb(69, 90, 100));
    border: 3px solid rgb(120, 144, 156);
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.example-box p {
    font-size: 17px;
    font-weight: bold;
    color: rgb(255, 255, 255);
    margin-bottom: 12px;
}

.example-box ul {
    list-style-type: none;
    padding-left: 0;
}

.example-box ul li {
    font-size: 16px;
    font-weight: bold;
    color: rgb(255, 255, 255);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.example-box ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: rgb(255, 193, 7);
    font-size: 24px;
    font-weight: bold;
}

/* Case Laws */
.case-law {
    background: linear-gradient(135deg, rgb(103, 58, 183), rgb(81, 45, 168));
    border: 3px solid rgb(149, 117, 205);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.case-law h4 {
    font-size: 22px;
    font-weight: bold;
    color: rgb(255, 255, 255);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.case-law ul {
    list-style-type: none;
    padding-left: 0;
}

.case-law ul li {
    font-size: 16px;
    font-weight: bold;
    color: rgb(255, 255, 255);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.case-law ul li::before {
    content: "⚖";
    position: absolute;
    left: 0;
    color: rgb(255, 193, 7);
    font-size: 18px;
}

/* Flowcharts */
.flowchart {
    background: linear-gradient(135deg, rgb(30, 55, 100), rgb(40, 70, 120));
    border: 3px solid rgb(100, 150, 220);
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flow-box {
    background: linear-gradient(135deg, rgb(63, 81, 181), rgb(48, 63, 159));
    border: 3px solid rgb(121, 134, 203);
    border-radius: 10px;
    padding: 18px 30px;
    margin: 8px 0;
    font-weight: bold;
    font-size: 17px;
    color: rgb(255, 255, 255);
    text-align: center;
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.flow-box.start {
    background: linear-gradient(135deg, rgb(76, 175, 80), rgb(56, 142, 60));
    border-color: rgb(129, 199, 132);
}

.flow-box.end {
    background: linear-gradient(135deg, rgb(244, 67, 54), rgb(211, 47, 47));
    border-color: rgb(239, 154, 154);
}

.flow-box.decision {
    background: linear-gradient(135deg, rgb(255, 152, 0), rgb(245, 124, 0));
    border-color: rgb(255, 183, 77);
    border-radius: 50px;
}

.flow-box.process {
    background: linear-gradient(135deg, rgb(33, 150, 243), rgb(21, 101, 192));
    border-color: rgb(100, 181, 246);
}

.flow-box.split {
    background: linear-gradient(135deg, rgb(156, 39, 176), rgb(123, 31, 162));
    border-color: rgb(186, 104, 200);
}

.arrow {
    font-size: 32px;
    font-weight: bold;
    color: rgb(255, 235, 59);
    margin: 5px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.split-arrow {
    font-size: 24px;
    font-weight: bold;
    color: rgb(255, 235, 59);
}

.flow-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin: 15px 0;
}

.flow-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    margin: 0 10px;
}

/* Q&A Section */
.qa-container {
    margin-top: 20px;
}

.qa-item {
    background: linear-gradient(135deg, rgb(40, 70, 120), rgb(50, 85, 140));
    border: 3px solid rgb(100, 150, 220);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.qa-question {
    width: 100%;
    background: linear-gradient(135deg, rgb(63, 81, 181), rgb(48, 63, 159));
    border: none;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: bold;
    color: rgb(255, 255, 255);
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.qa-question:hover {
    background: linear-gradient(135deg, rgb(48, 63, 159), rgb(40, 53, 147));
}

.qa-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.qa-text {
    flex-grow: 1;
    font-weight: bold;
}

.toggle-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.qa-question.active .toggle-icon {
    transform: rotate(180deg);
}

.qa-answer {
    display: none;
    background: linear-gradient(135deg, rgb(30, 55, 100), rgb(40, 70, 120));
    padding: 25px;
    border-top: 3px solid rgb(100, 150, 220);
}

.qa-answer.show {
    display: block;
}

.qa-answer p {
    font-size: 17px;
    font-weight: bold;
    color: rgb(255, 255, 255);
    margin-bottom: 15px;
}

.qa-answer ul {
    list-style-type: none;
    padding-left: 0;
}

.qa-answer ul li {
    font-size: 16px;
    font-weight: bold;
    color: rgb(255, 255, 255);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.qa-answer ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: rgb(76, 175, 80);
    font-size: 20px;
    font-weight: bold;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, rgb(55, 71, 79), rgb(69, 90, 100));
    border: 3px solid rgb(120, 144, 156);
    border-radius: 15px;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.main-footer p {
    font-size: 16px;
    font-weight: bold;
    color: rgb(255, 255, 255);
    margin: 8px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .main-header h1 {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .nav-buttons {
        grid-template-columns: 1fr;
    }
    
    .flow-container {
        flex-direction: column;
    }
    
    .info-table {
        font-size: 14px;
    }
    
    .info-table thead th,
    .info-table tbody td {
        padding: 10px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Strong Text */
strong {
    font-weight: bold;
    color: rgb(255, 235, 59);
}

/* Selection Color */
::selection {
    background: rgb(255, 193, 7);
    color: rgb(33, 33, 33);
}

::-moz-selection {
    background: rgb(255, 193, 7);
    color: rgb(33, 33, 33);
}