/* ============================================
   THE COPYRIGHT ACT, 1957 - CHAPTER V
   Professional Educational Stylesheet
   Digital E-Filing Coach - Amanuddin Education
   ============================================ */

/* CSS Variables for Consistent Theming */
:root {
    /* Primary Colors */
    --primary-bg: rgb(26, 35, 50);
    --secondary-bg: rgb(35, 47, 65);
    --tertiary-bg: rgb(45, 60, 82);
    --accent-color: rgb(218, 165, 32);
    --accent-hover: rgb(255, 193, 37);
    
    /* Text Colors */
    --text-primary: rgb(248, 248, 242);
    --text-secondary: rgb(200, 210, 225);
    --text-muted: rgb(150, 165, 185);
    
    /* Border Colors */
    --border-primary: rgb(218, 165, 32);
    --border-secondary: rgb(100, 120, 150);
    --border-light: rgb(70, 90, 120);
    
    /* Section Colors */
    --section-green: rgb(46, 125, 50);
    --section-blue: rgb(30, 90, 156);
    --section-orange: rgb(230, 126, 34);
    --section-purple: rgb(142, 68, 173);
    --section-teal: rgb(0, 128, 128);
    --section-red: rgb(192, 57, 43);
    --section-pink: rgb(219, 112, 147);
    --section-brown: rgb(139, 90, 43);
    
    /* Box Colors */
    --explanation-bg: rgb(40, 55, 78);
    --example-bg: rgb(45, 65, 90);
    --case-bg: rgb(50, 40, 55);
    --table-header-bg: rgb(35, 50, 70);
    
    /* Fonts */
    --font-heading: 'Merriweather', Georgia, serif;
    --font-body: 'Source Sans Pro', 'Segoe UI', sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--primary-bg);
    font-weight: 600;
}

/* Print Header - Hidden on Screen */
.print-header {
    display: none;
}

/* Main Header */
.main-header {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    border-bottom: 4px solid var(--border-primary);
    padding: 25px 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.scales-icon {
    font-size: 48px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.title-block h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    color: var(--accent-color);
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.title-block h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 5px;
}

.title-block .subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 5px;
    font-weight: 600;
}

/* Print Button */
.print-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: var(--primary-bg);
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
}

.print-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.4);
}

.print-icon {
    font-size: 20px;
}

/* Navigation Menu */
.navigation-menu {
    background: var(--secondary-bg);
    border-bottom: 2px solid var(--border-light);
    padding: 20px 30px;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
}

.nav-container h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-btn {
    background: var(--tertiary-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-light);
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--border-primary);
    color: var(--primary-bg);
    border-color: var(--border-primary);
    transform: translateY(-2px);
}

.nav-btn.special {
    background: linear-gradient(135deg, var(--section-purple) 0%, var(--section-blue) 100%);
    border-color: var(--section-purple);
}

.nav-btn.special:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    border-color: var(--accent-color);
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 30px;
}

/* Introduction Section */
.intro-section {
    margin-bottom: 40px;
}

.intro-box {
    background: linear-gradient(135deg, var(--explanation-bg) 0%, var(--secondary-bg) 100%);
    border: 3px solid var(--accent-color);
    border-radius: 12px;
    padding: 30px;
}

.intro-box h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.intro-box p {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.key-principle {
    background: rgba(218, 165, 32, 0.15);
    border-left: 5px solid var(--accent-color);
    padding: 15px 20px;
    margin-top: 20px;
    border-radius: 0 8px 8px 0;
}

.key-principle strong {
    color: var(--accent-color);
}

/* Content Sections */
.content-section {
    background: var(--secondary-bg);
    border: 2px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.section-header {
    background: linear-gradient(135deg, var(--tertiary-bg) 0%, var(--secondary-bg) 100%);
    border-bottom: 3px solid var(--accent-color);
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.section-number {
    background: var(--accent-color);
    color: var(--primary-bg);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 900;
    font-family: var(--font-heading);
    white-space: nowrap;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    color: var(--text-primary);
}

.section-body {
    padding: 30px;
}

/* Explanation Box */
.explanation-box {
    background: var(--explanation-bg);
    border: 2px solid var(--section-blue);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
}

.explanation-box h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 900;
    color: rgb(100, 180, 255);
    margin-bottom: 15px;
}

.explanation-box p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.explanation-box ul {
    margin-left: 25px;
    margin-top: 15px;
}

.explanation-box li {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.explanation-box li strong {
    color: var(--accent-color);
}

/* Example Box */
.example-box {
    background: var(--example-bg);
    border: 2px solid var(--section-green);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
}

.example-box h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 900;
    color: rgb(100, 220, 120);
    margin-bottom: 15px;
}

.example-box p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.example-box ul {
    margin-left: 25px;
    margin-top: 10px;
    margin-bottom: 15px;
}

.example-box li {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Case Law Box */
.case-law-box {
    background: var(--case-bg);
    border: 2px solid var(--section-orange);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
}

.case-law-box h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 900;
    color: rgb(255, 180, 100);
    margin-bottom: 15px;
}

.case-content {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 20px;
}

.case-name {
    font-size: 18px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.citation {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent-color);
    font-style: italic;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.case-summary, .case-held {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.case-held strong {
    color: rgb(255, 180, 100);
}

/* Tables */
.table-container {
    margin-top: 25px;
}

.table-container h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--tertiary-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.info-table thead {
    background: linear-gradient(135deg, var(--table-header-bg) 0%, var(--secondary-bg) 100%);
}

.info-table th {
    padding: 15px 20px;
    text-align: left;
    font-size: 16px;
    font-weight: 900;
    color: var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
}

.info-table td {
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.info-table tbody tr:hover {
    background: rgba(218, 165, 32, 0.1);
}

.info-table tbody tr:last-child td {
    border-bottom: none;
}

.mini-table {
    width: 100%;
    margin: 15px 0;
}

.mini-table td {
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
}

.mini-table td:first-child {
    width: 40%;
}

/* Master Table */
.master-table {
    font-size: 14px;
}

.full-width {
    overflow-x: auto;
}

/* Flowchart Styles */
.flowchart-container {
    background: var(--tertiary-bg);
    border-radius: 12px;
    padding: 40px;
    overflow-x: auto;
}

.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 800px;
}

.flow-node {
    padding: 15px 25px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-width: 180px;
}

.flow-node span {
    display: block;
    font-size: 16px;
    font-weight: 900;
}

.flow-node p {
    font-size: 13px;
    font-weight: 600;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.9);
}

.start-node {
    background: linear-gradient(135deg, var(--section-blue) 0%, rgb(50, 120, 200) 100%);
    color: white;
    border: 3px solid rgb(100, 180, 255);
}

.end-node {
    background: linear-gradient(135deg, var(--section-green) 0%, rgb(70, 150, 70) 100%);
    color: white;
    border: 3px solid rgb(100, 220, 120);
}

.decision-node {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: var(--primary-bg);
    border: 3px solid rgb(255, 220, 100);
    border-radius: 50px;
}

.decision-node.small {
    padding: 10px 15px;
    font-size: 12px;
}

.decision-node.small span {
    font-size: 13px;
}

.result-node {
    color: white;
}

.result-node.green {
    background: linear-gradient(135deg, var(--section-green) 0%, rgb(70, 150, 70) 100%);
    border: 3px solid rgb(100, 220, 120);
}

.result-node.blue {
    background: linear-gradient(135deg, var(--section-blue) 0%, rgb(50, 120, 200) 100%);
    border: 3px solid rgb(100, 180, 255);
}

.result-node.orange {
    background: linear-gradient(135deg, var(--section-orange) 0%, rgb(255, 160, 60) 100%);
    border: 3px solid rgb(255, 200, 120);
}

.result-node.purple {
    background: linear-gradient(135deg, var(--section-purple) 0%, rgb(180, 100, 200) 100%);
    border: 3px solid rgb(200, 150, 220);
}

.result-node.teal {
    background: linear-gradient(135deg, var(--section-teal) 0%, rgb(40, 180, 180) 100%);
    border: 3px solid rgb(100, 220, 220);
}

.result-node.pink {
    background: linear-gradient(135deg, var(--section-pink) 0%, rgb(255, 150, 180) 100%);
    border: 3px solid rgb(255, 180, 200);
}

.result-node.red {
    background: linear-gradient(135deg, var(--section-red) 0%, rgb(220, 80, 60) 100%);
    border: 3px solid rgb(255, 120, 100);
}

.result-node.brown {
    background: linear-gradient(135deg, var(--section-brown) 0%, rgb(180, 120, 60) 100%);
    border: 3px solid rgb(220, 160, 100);
}

/* Flow Arrows */
.flow-arrow {
    position: relative;
}

.flow-arrow.vertical {
    width: 4px;
    height: 40px;
    background: var(--accent-color);
    margin: 5px 0;
}

.flow-arrow.vertical::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 12px solid var(--accent-color);
}

.flow-arrow.vertical-short {
    width: 4px;
    height: 25px;
    background: var(--accent-color);
    margin: 5px auto;
}

.flow-arrow.vertical-short::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid var(--accent-color);
}

.flow-arrow.horizontal-left {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 0 10px;
}

.flow-arrow.horizontal-left::after {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 12px solid var(--accent-color);
}

/* Flow Branches */
.flow-branch {
    display: flex;
    align-items: flex-start;
    gap: 80px;
    margin: 20px 0;
}

.branch-left, .branch-right {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.branch-left {
    flex-direction: row;
    align-items: center;
}

.flow-arrow-label {
    font-size: 14px;
    font-weight: 900;
    color: var(--accent-color);
    margin: 5px 10px;
}

.flow-multi-branch {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.multi-branch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Flow Special Section */
.flow-special-section {
    margin: 40px 0;
    text-align: center;
}

.flow-special-section h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.special-nodes {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.flow-connector {
    width: 30px;
    height: 4px;
    background: var(--border-light);
}

/* Mind Map Styles */
.mindmap-container {
    background: var(--tertiary-bg);
    border-radius: 12px;
    padding: 60px 40px;
    overflow-x: auto;
}

.mindmap {
    position: relative;
    min-width: 900px;
    min-height: 600px;
}

.mind-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.mind-node {
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mind-node.central {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: var(--primary-bg);
    padding: 25px 35px;
    border-radius: 50%;
    border: 4px solid rgb(255, 220, 100);
}

.mind-node.central span {
    font-size: 20px;
    font-weight: 900;
    display: block;
}

.mind-node.central p {
    font-size: 14px;
    margin-top: 5px;
}

.mind-node.primary {
    background: var(--section-blue);
    color: white;
    border: 3px solid rgb(100, 180, 255);
    min-width: 150px;
}

.mind-node.primary span {
    font-size: 16px;
    font-weight: 900;
}

.mind-node.secondary {
    background: var(--secondary-bg);
    color: var(--text-secondary);
    border: 2px solid var(--border-light);
    font-size: 13px;
    padding: 10px 15px;
    margin: 8px 0;
}

/* Mind Map Branches */
.mind-branch {
    position: absolute;
}

.mind-branch.branch-1 {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.mind-branch.branch-2 {
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
}

.mind-branch.branch-3 {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.mind-branch.branch-4 {
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
}

.mind-connector {
    width: 4px;
    height: 60px;
    background: var(--accent-color);
    margin: 0 auto 10px auto;
}

.mind-connector.connector-1 {
    height: 80px;
}

.mind-connector.connector-2,
.mind-connector.connector-4 {
    width: 80px;
    height: 4px;
    margin: 10px 0;
}

.mind-connector.connector-3 {
    height: 80px;
}

.mind-sub-branches {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mind-sub-connector {
    width: 3px;
    height: 15px;
    background: var(--border-light);
}

.node-1 { background: var(--section-blue); }
.node-2 { background: var(--section-green); border-color: rgb(100, 220, 120); }
.node-3 { background: var(--section-purple); border-color: rgb(200, 150, 220); }
.node-4 { background: var(--section-orange); border-color: rgb(255, 200, 120); }

/* Roadmap Styles */
.roadmap-container {
    background: var(--tertiary-bg);
    border-radius: 12px;
    padding: 40px;
}

.roadmap {
    position: relative;
}

.roadmap-stage {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
}

.stage-marker {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgb(255, 220, 100);
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.4);
    z-index: 2;
}

.stage-number {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-bg);
}

.stage-content {
    flex: 1;
    background: var(--secondary-bg);
    border: 2px solid var(--border-light);
    border-radius: 10px;
    padding: 20px 25px;
    margin-left: 25px;
}

.stage-content h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.stage-details ul {
    margin-left: 20px;
}

.stage-details li {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stage-connector {
    position: absolute;
    left: 30px;
    top: 60px;
    width: 4px;
    height: calc(100% + 30px);
    background: linear-gradient(to bottom, var(--accent-color) 0%, var(--border-light) 100%);
    z-index: 1;
}

.final-stage .stage-connector {
    display: none;
}

.stage-table {
    width: 100%;
    margin-top: 10px;
}

.stage-table td {
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
}

.formula-box {
    background: rgba(218, 165, 32, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 15px;
    border-radius: 0 8px 8px 0;
    margin-top: 10px;
}

.formula-box p {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.status-boxes {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.status-box {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
}

.status-box.protected {
    background: linear-gradient(135deg, var(--section-orange) 0%, rgb(255, 160, 60) 100%);
    color: white;
}

.status-box.public {
    background: linear-gradient(135deg, var(--section-green) 0%, rgb(70, 150, 70) 100%);
    color: white;
}

.status-box strong {
    display: block;
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 8px;
}

.status-box p {
    font-size: 14px;
    font-weight: 600;
}

/* Disclaimer Section */
.disclaimer-section {
    margin-top: 50px;
}

.disclaimer-box {
    background: rgba(192, 57, 43, 0.15);
    border: 3px solid var(--section-red);
    border-radius: 12px;
    padding: 25px 30px;
}

.disclaimer-box h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 900;
    color: rgb(255, 120, 100);
    margin-bottom: 15px;
}

.disclaimer-box p {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.disclaimer-box .source {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
}

/* Footer */
.main-footer {
    background: var(--secondary-bg);
    border-top: 4px solid var(--accent-color);
    padding: 30px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer-content p:first-child {
    font-size: 18px;
    font-weight: 900;
    color: var(--accent-color);
}

.footer-disclaimer {
    font-size: 13px !important;
    color: var(--text-muted) !important;
    font-style: italic;
    margin-top: 15px !important;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: var(--primary-bg);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(218, 165, 32, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.5);
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .print-header {
        display: block;
        text-align: center;
        padding: 20px;
        border-bottom: 3px solid black;
        margin-bottom: 20px;
    }

    .print-header h1 {
        font-size: 24pt;
        font-weight: 900;
        color: black;
    }

    .print-header h2 {
        font-size: 18pt;
        font-weight: 700;
        margin-top: 10px;
    }

    .print-header p {
        font-size: 12pt;
        margin-top: 10px;
        color: #666;
    }

    .main-header,
    .navigation-menu,
    .print-btn,
    .back-to-top,
    .main-footer {
        display: none !important;
    }

    .main-content {
        padding: 0;
        max-width: 100%;
    }

    .content-section {
        background: white;
        border: 2px solid #333;
        margin-bottom: 20px;
        page-break-inside: avoid;
        box-shadow: none;
    }

    .section-header {
        background: #f0f0f0;
        border-bottom: 2px solid #333;
    }

    .section-number {
        background: #333;
        color: white;
    }

    .section-header h2 {
        color: black;
    }

    .explanation-box,
    .example-box,
    .case-law-box {
        background: #f8f8f8;
        border: 1px solid #666;
    }

    .explanation-box h3 { color: #0066cc; }
    .example-box h3 { color: #008800; }
    .case-law-box h3 { color: #cc6600; }

    .explanation-box p,
    .explanation-box li,
    .example-box p,
    .example-box li,
    .case-law-box p {
        color: black;
    }

    .case-content {
        background: #f0f0f0;
    }

    .citation {
        color: #666;
        border-bottom-color: #ccc;
    }

    .info-table {
        background: white;
        box-shadow: none;
    }

    .info-table thead {
        background: #e0e0e0;
    }

    .info-table th {
        color: black;
        border-bottom: 2px solid #333;
    }

    .info-table td {
        color: black;
        border-bottom-color: #ccc;
    }

    .flowchart-container,
    .mindmap-container,
    .roadmap-container {
        background: #f8f8f8;
        page-break-inside: avoid;
    }

    .intro-box {
        background: #f8f8f8;
        border-color: #cc9900;
    }

    .intro-box h2 {
        color: #cc9900;
    }

    .intro-box p {
        color: black;
    }

    .key-principle {
        background: #fff8e0;
    }

    .key-principle strong {
        color: #cc9900;
    }

    .disclaimer-box {
        background: #fff0f0;
        border-color: #cc0000;
    }

    .disclaimer-box h3 {
        color: #cc0000;
    }

    .disclaimer-box p {
        color: black;
    }

    .table-container h3,
    .flow-special-section h4,
    .stage-content h4 {
        color: #cc9900;
    }

    .flow-node {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .mind-node {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .stage-marker {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .status-box {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .flow-multi-branch {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .logo-section {
        flex-direction: column;
    }

    .title-block {
        text-align: center;
    }

    .nav-buttons {
        justify-content: center;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
    }

    .flow-branch {
        flex-direction: column;
        gap: 30px;
    }

    .branch-left {
        flex-direction: column;
    }

    .mindmap {
        min-width: 100%;
        min-height: auto;
    }

    .mind-branch {
        position: relative;
        transform: none;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        margin: 20px 0;
    }

    .mind-center {
        position: relative;
        transform: none;
        margin: 30px auto;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 20px;
    }

    .title-block h1 {
        font-size: 22px;
    }

    .title-block h2 {
        font-size: 16px;
    }

    .navigation-menu {
        padding: 15px;
    }

    .nav-btn {
        font-size: 12px;
        padding: 8px 12px;
    }

    .main-content {
        padding: 20px 15px;
    }

    .section-header {
        padding: 20px;
    }

    .section-number {
        font-size: 14px;
        padding: 8px 15px;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .section-body {
        padding: 20px;
    }

    .explanation-box,
    .example-box,
    .case-law-box {
        padding: 20px;
    }

    .explanation-box h3,
    .example-box h3,
    .case-law-box h3 {
        font-size: 18px;
    }

    .info-table th,
    .info-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .flowchart-container,
    .roadmap-container {
        padding: 20px;
    }

    .roadmap-stage {
        flex-direction: column;
    }

    .stage-marker {
        margin-bottom: 15px;
    }

    .stage-content {
        margin-left: 0;
    }

    .stage-connector {
        display: none;
    }

    .status-boxes {
        flex-direction: column;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .title-block h1 {
        font-size: 18px;
    }

    .scales-icon {
        font-size: 36px;
    }

    .print-btn {
        padding: 10px 18px;
        font-size: 14px;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
    }
}