/* ============================================
   CHAPTER VII - COPYRIGHT ACT 1957
   Professional Educational Resource Stylesheet
   ============================================ */

/* === RESET & BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    background: linear-gradient(135deg, rgb(240, 248, 205) 0%, rgb(230, 240, 210) 100%);
    color: rgb(20, 20, 40);
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: rgb(255, 255, 155);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

/* === HEADER === */
header {
    background: linear-gradient(135deg, rgb(25, 155, 109) 0%, rgb(41, 182, 156) 100%);
    color: rgb(255, 255, 255);
    padding: 40px;
    text-align: center;
    border-bottom: 5px solid rgb(255, 193, 7);
    position: relative;
}

header h1 {
    font-size: 2.8em;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

header h2 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 10px;
    color: rgb(255, 255, 255);
}

.subtitle {
    font-size: 1.2em;
    font-style: italic;
    opacity: 0.95;
    font-weight: 600;
}

.print-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background-color: rgb(255, 193, 7);
    color: rgb(25, 55, 109);
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.print-btn:hover {
    background-color: rgb(255, 214, 51);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* === DISCLAIMER === */
.disclaimer {
    background-color: rgb(255, 243, 205);
    border-left: 5px solid rgb(255, 152, 0);
    padding: 20px;
    margin: 20px 40px;
    border-radius: 8px;
    font-weight: 600;
    color: rgb(102, 60, 0);
}

/* === TABLE OF CONTENTS === */
.table-of-contents {
    background: linear-gradient(135deg, rgb(245, 250, 255) 0%, rgb(235, 245, 255) 100%);
    border: 3px solid rgb(41, 82, 156);
    border-radius: 10px;
    padding: 30px;
    margin: 30px 40px;
}

.table-of-contents h3 {
    color: rgb(25, 55, 109);
    font-size: 1.8em;
    font-weight: 800;
    margin-bottom: 20px;
    border-bottom: 3px solid rgb(255, 193, 7);
    padding-bottom: 10px;
}

.table-of-contents ul {
    list-style: none;
}

.table-of-contents li {
    margin: 12px 0;
}

.nav-link {
    color: rgb(41, 82, 156);
    text-decoration: none;
    font-size: 1.15em;
    font-weight: 700;
    padding: 10px 15px;
    display: inline-block;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.nav-link:hover {
    background-color: rgb(41, 82, 156);
    color: rgb(255, 255, 255);
    border-color: rgb(41, 82, 156);
    transform: translateX(10px);
}

/* === MAIN CONTENT === */
main {
    padding: 40px;
}

.content-section {
    margin-bottom: 60px;
    padding: 30px;
    background-color: rgb(252, 252, 255);
    border-radius: 10px;
    border: 2px solid rgb(220, 230, 245);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.content-section h2 {
    color: rgb(25, 55, 109);
    font-size: 2.2em;
    font-weight: 800;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 4px solid rgb(255, 193, 7);
}

.content-section h3 {
    color: rgb(41, 82, 156);
    font-size: 1.7em;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
}

.content-section h4 {
    color: rgb(60, 90, 150);
    font-size: 1.4em;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 12px;
}

.content-section p {
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 500;
    line-height: 1.9;
}

.content-section ul,
.content-section ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.content-section li {
    margin-bottom: 10px;
    font-size: 1.05em;
    font-weight: 500;
    line-height: 1.7;
}

.content-section strong {
    color: rgb(25, 55, 109);
    font-weight: 800;
}

/* === EXPLANATION BOX === */
.explanation {
    background: linear-gradient(135deg, rgb(240, 248, 255) 0%, rgb(230, 244, 255) 100%);
    border-left: 6px solid rgb(41, 82, 156);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

/* === EXAMPLE BOX === */
.example-box {
    background: linear-gradient(135deg, rgb(245, 255, 250) 0%, rgb(235, 250, 245) 100%);
    border-left: 6px solid rgb(76, 175, 80);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.example-box h3 {
    color: rgb(46, 125, 50);
    margin-top: 0;
}

/* === CASE LAW BOX === */
.case-law {
    background: linear-gradient(135deg, rgb(255, 248, 240) 0%, rgb(255, 243, 230) 100%);
    border-left: 6px solid rgb(255, 152, 0);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.case-law h3 {
    color: rgb(230, 81, 0);
    margin-top: 0;
}

.case-law h4 {
    color: rgb(191, 54, 12);
    font-style: italic;
}

/* === LEGAL PROVISIONS TABLE === */
.legal-provisions {
    background: linear-gradient(135deg, rgb(250, 245, 255) 0%, rgb(245, 240, 255) 100%);
    border-left: 6px solid rgb(103, 58, 183);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.legal-provisions h3 {
    color: rgb(103, 58, 183);
    margin-top: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

th {
    background: linear-gradient(135deg, rgb(25, 55, 109) 0%, rgb(41, 82, 156) 100%);
    color: rgb(255, 255, 255);
    padding: 15px;
    text-align: left;
    font-weight: 800;
    font-size: 1.1em;
}

td {
    padding: 15px;
    border-bottom: 1px solid rgb(230, 230, 240);
    font-weight: 600;
}

tr:hover {
    background-color: rgb(248, 250, 255);
}

tr:last-child td {
    border-bottom: none;
}

/* === FLOWCHART STYLES === */
.chart-container {
    margin: 30px 0;
    text-align: center;
}

.chart-container svg {
    max-width: 100%;
    height: auto;
}

.flow-start,
.flow-end {
    fill: rgb(255, 193, 7);
    stroke: rgb(230, 81, 0);
    stroke-width: 3;
}

.flow-box {
    fill: rgb(240, 248, 255);
    stroke: rgb(41, 82, 156);
    stroke-width: 2;
}

.flow-decision {
    fill: rgb(255, 243, 224);
    stroke: rgb(255, 152, 0);
    stroke-width: 2;
}

.flow-arrow {
    stroke: rgb(41, 82, 156);
    stroke-width: 3;
    fill: none;
}

.arrow-head {
    fill: rgb(41, 82, 156);
}

.flow-text {
    font-family: 'Segoe UI', sans-serif;
    font-size: 18px;
    font-weight: 800;
    fill: rgb(25, 55, 109);
    text-anchor: middle;
}

.flow-text-small {
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 700;
    fill: rgb(60, 90, 150);
    text-anchor: middle;
}

/* === MIND MAP STYLES === */
.mind-central {
    fill: rgb(255, 193, 7);
    stroke: rgb(230, 81, 0);
    stroke-width: 4;
}

.mind-node {
    stroke-width: 3;
}

.mind-node-1 {
    fill: rgb(255, 235, 238);
    stroke: rgb(244, 67, 54);
}

.mind-node-2 {
    fill: rgb(232, 245, 233);
    stroke: rgb(76, 175, 80);
}

.mind-node-3 {
    fill: rgb(227, 242, 253);
    stroke: rgb(33, 150, 243);
}

.mind-node-4 {
    fill: rgb(243, 229, 245);
    stroke: rgb(156, 39, 176);
}

.mind-node-5 {
    fill: rgb(255, 243, 224);
    stroke: rgb(255, 152, 0);
}

.mind-node-6 {
    fill: rgb(255, 249, 196);
    stroke: rgb(255, 235, 59);
}

.mind-line {
    stroke-width: 3;
}

.mind-line-1 {
    stroke: rgb(244, 67, 54);
}

.mind-line-2 {
    stroke: rgb(76, 175, 80);
}

.mind-line-3 {
    stroke: rgb(33, 150, 243);
}

.mind-line-4 {
    stroke: rgb(156, 39, 176);
}

.mind-line-5 {
    stroke: rgb(255, 152, 0);
}

.mind-line-6 {
    stroke: rgb(255, 235, 59);
}

.mind-line-thin {
    stroke: rgb(150, 150, 170);
    stroke-width: 2;
}

.mind-text {
    font-family: 'Segoe UI', sans-serif;
    font-size: 18px;
    font-weight: 800;
    text-anchor: middle;
    fill: rgb(25, 55, 109);
}

.mind-text-small {
    font-family: 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-anchor: middle;
    fill: rgb(60, 90, 150);
}

.mind-text-large {
    font-family: 'Segoe UI', sans-serif;
    font-size: 20px;
    font-weight: 800;
    text-anchor: middle;
    fill: rgb(25, 55, 109);
}

.mind-text-tiny {
    font-family: 'Segoe UI', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-anchor: middle;
    fill: rgb(80, 80, 100);
}

.mind-detail {
    fill: rgb(255, 255, 255);
    stroke: rgb(200, 200, 220);
    stroke-width: 1.5;
}

/* === ROADMAP STYLES === */
.roadmap-container {
    padding: 30px 0;
}

.roadmap-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgb(248, 250, 255) 0%, rgb(240, 245, 255) 100%);
    border-radius: 10px;
    border-left: 6px solid rgb(41, 82, 156);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.roadmap-item:hover {
    transform: translateX(10px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.roadmap-number {
    background: linear-gradient(135deg, rgb(255, 193, 7) 0%, rgb(255, 160, 0) 100%);
    color: rgb(25, 55, 109);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 800;
    flex-shrink: 0;
    margin-right: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.roadmap-content {
    flex: 1;
}

.roadmap-content h3 {
    color: rgb(25, 55, 109);
    font-size: 1.6em;
    font-weight: 800;
    margin-bottom: 15px;
}

.roadmap-content p {
    font-weight: 600;
    margin-bottom: 12px;
}

.roadmap-content ul {
    margin-left: 20px;
}

.roadmap-content li {
    font-weight: 600;
}

.roadmap-arrow {
    text-align: center;
    font-size: 3em;
    color: rgb(41, 82, 156);
    font-weight: 800;
    margin: 10px 0;
}

.roadmap-milestone {
    background: linear-gradient(135deg, rgb(255, 193, 7) 0%, rgb(255, 160, 0) 100%);
    color: rgb(25, 55, 109);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.roadmap-milestone h3 {
    font-size: 2em;
    font-weight: 800;
    margin-bottom: 15px;
}

.roadmap-milestone p {
    font-size: 1.3em;
    font-weight: 700;
}

/* === SUMMARY SECTION === */
.summary-section {
    background: linear-gradient(135deg, rgb(245, 255, 250) 0%, rgb(235, 250, 245) 100%);
    border: 4px solid rgb(76, 175, 80);
}

.summary-box h3 {
    color: rgb(46, 125, 50);
    font-size: 1.9em;
    font-weight: 800;
    margin-bottom: 25px;
}

.takeaway-item {
    background-color: rgb(255, 255, 255);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 4px solid rgb(76, 175, 80);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.takeaway-item h4 {
    color: rgb(46, 125, 50);
    font-weight: 800;
    margin-bottom: 10px;
}

/* === FOOTER === */
footer {
    background: linear-gradient(135deg, rgb(25, 55, 109) 0%, rgb(41, 82, 156) 100%);
    color: rgb(255, 255, 255);
    padding: 30px 40px;
    text-align: center;
    font-weight: 600;
}

footer p {
    margin: 10px 0;
    font-size: 1.05em;
}

/* === PRINT STYLES === */
@media print {
    body {
        background: white;
        padding: 0;
    }

    .container {
        box-shadow: none;
        border-radius: 0;
    }

    .print-btn {
        display: none;
    }

    .table-of-contents {
        page-break-after: always;
    }

    .content-section {
        page-break-inside: avoid;
        margin-bottom: 30px;
    }

    h2 {
        page-break-after: avoid;
    }

    .roadmap-item {
        page-break-inside: avoid;
    }

    svg {
        max-width: 100%;
        page-break-inside: avoid;
    }

    a {
        color: rgb(41, 82, 156);
        text-decoration: underline;
    }

    .nav-link:hover {
        background-color: transparent;
        color: rgb(41, 82, 156);
    }
}

/* === RESPONSIVE DESIGN === */
@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 2em;
    }

    header h2 {
        font-size: 1.5em;
    }

    .print-btn {
        position: static;
        margin-top: 20px;
    }

    main {
        padding: 20px;
    }

    .content-section {
        padding: 20px;
    }

    .roadmap-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .roadmap-number {
        margin-right: 0;
        margin-bottom: 15px;
    }

    table {
        font-size: 0.9em;
    }

    th, td {
        padding: 10px;
    }
}