/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: bold;
    line-height: 1.8;
    color: rgb(30, 30, 30);
    background: linear-gradient(135deg, rgb(240, 248, 230) 0%, rgb(240, 235, 225) 100%);
    min-height: 100vh;
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, rgb(255, 200, 50) 0%, rgb(255, 140, 0) 100%);
    width: 0%;
    z-index: 1000;
    transition: width 0.3s ease;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, rgb(25, 160, 85) 0%, rgb(40, 180, 110) 100%);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

.header-content h1 {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.act-details {
    font-size: 1.2em;
    font-weight: bold;
    line-height: 1.8;
}

.act-details p {
    margin: 0.5rem 0;
    font-weight: bold;
}

.act-details strong {
    color: rgb(255, 200, 50);
    font-weight: bold;
}

/* Disclaimer */
.disclaimer {
    background: linear-gradient(135deg, rgb(255, 230, 230) 0%, rgb(255, 200, 200) 100%);
    border: 4px solid rgb(200, 50, 50);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: 0 6px 15px rgba(200, 50, 50, 0.3);
    font-weight: bold;
}

.disclaimer h3 {
    color: rgb(180, 30, 30);
    font-size: 1.6em;
    margin-bottom: 1rem;
    font-weight: bold;
}

.disclaimer p {
    color: rgb(100, 20, 20);
    font-size: 1.1em;
    line-height: 1.8;
    font-weight: bold;
}

/* Quick Navigation */
.quick-nav {
    background: linear-gradient(135deg, rgb(245, 245, 250) 0%, rgb(230, 235, 245) 100%);
    border: 4px solid rgb(70, 130, 180);
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 1300px;
    box-shadow: 0 8px 20px rgba(70, 130, 180, 0.3);
    font-weight: bold;
}

.quick-nav h2 {
    color: rgb(25, 50, 85);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 2em;
    font-weight: bold;
}

.nav-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    font-weight: bold;
}

.nav-btn {
    background: linear-gradient(135deg, rgb(70, 130, 180) 0%, rgb(90, 150, 200) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    font-size: 1.05em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(70, 130, 180, 0.4);
    text-align: center;
}

.nav-btn:hover {
    background: linear-gradient(135deg, rgb(90, 150, 200) 0%, rgb(70, 130, 180) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(70, 130, 180, 0.5);
}

.special-btn {
    background: linear-gradient(135deg, rgb(255, 140, 0) 0%, rgb(255, 100, 0) 100%);
    font-weight: bold;
}

.special-btn:hover {
    background: linear-gradient(135deg, rgb(255, 100, 0) 0%, rgb(255, 140, 0) 100%);
}

/* Main Content */
.content-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    font-weight: bold;
}

/* Chapter Section */
.chapter-section {
    margin: 3rem 0;
    font-weight: bold;
}

.chapter-title {
    background: linear-gradient(135deg, rgb(40, 70, 110) 0%, rgb(60, 90, 130) 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    font-size: 2.2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 6px 15px rgba(40, 70, 110, 0.4);
}

/* Section Card */
.section-card {
    background: linear-gradient(135deg, rgb(255, 255, 255) 0%, rgb(250, 250, 255) 100%);
    border: 4px solid rgb(70, 130, 180);
    border-radius: 15px;
    margin: 2rem 0;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(70, 130, 180, 0.3);
    font-weight: bold;
}

.section-toggle {
    width: 100%;
    background: linear-gradient(135deg, rgb(70, 130, 180) 0%, rgb(90, 150, 200) 100%);
    color: white;
    border: none;
    padding: 1.5rem 2rem;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    text-align: left;
}

.section-toggle:hover {
    background: linear-gradient(135deg, rgb(90, 150, 200) 0%, rgb(110, 170, 220) 100%);
}

.section-number {
    background: rgb(255, 200, 50);
    color: rgb(25, 50, 85);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    margin-right: 1rem;
}

.section-title {
    flex: 1;
    font-weight: bold;
}

.toggle-icon {
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.section-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.section-content {
    padding: 2rem;
    display: none;
    font-weight: bold;
}

.section-content.active {
    display: block;
}

/* Content Boxes */
.act-text {
    background: linear-gradient(135deg, rgb(245, 250, 255) 0%, rgb(235, 245, 255) 100%);
    border: 4px solid rgb(100, 150, 200);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 10px rgba(100, 150, 200, 0.2);
    font-weight: bold;
}

.act-text h4 {
    color: rgb(25, 50, 85);
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 1rem;
}

.act-text p, .act-text ul {
    color: rgb(40, 60, 90);
    font-size: 1.1em;
    font-weight: bold;
    margin: 1rem 0;
    line-height: 1.8;
}

.act-text strong {
    color: rgb(200, 50, 50);
    font-weight: bold;
}

.explanation {
    background: linear-gradient(135deg, rgb(255, 250, 240) 0%, rgb(255, 245, 230) 100%);
    border: 4px solid rgb(255, 140, 0);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 10px rgba(255, 140, 0, 0.2);
    font-weight: bold;
}

.explanation h4 {
    color: rgb(180, 100, 0);
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 1rem;
}

.explanation p, .explanation ul {
    color: rgb(100, 60, 20);
    font-size: 1.05em;
    font-weight: bold;
    line-height: 1.8;
    margin: 1rem 0;
}

.example {
    background: linear-gradient(135deg, rgb(240, 255, 240) 0%, rgb(230, 250, 230) 100%);
    border: 4px solid rgb(100, 180, 100);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 10px rgba(100, 180, 100, 0.2);
    font-weight: bold;
}

.example h4 {
    color: rgb(50, 120, 50);
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 1rem;
}

.example p {
    color: rgb(40, 80, 40);
    font-size: 1.05em;
    font-weight: bold;
    line-height: 1.8;
    margin: 1rem 0;
}

.case-law {
    background: linear-gradient(135deg, rgb(255, 245, 240) 0%, rgb(255, 235, 230) 100%);
    border: 4px solid rgb(180, 100, 60);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 10px rgba(180, 100, 60, 0.2);
    font-weight: bold;
}

.case-law h4 {
    color: rgb(140, 70, 40);
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 1rem;
}

.case-law p {
    color: rgb(100, 50, 30);
    font-size: 1.05em;
    font-weight: bold;
    line-height: 1.8;
    margin: 1rem 0;
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border: 3px solid rgb(70, 130, 180);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(70, 130, 180, 0.2);
    font-weight: bold;
}

.data-table th {
    background: linear-gradient(135deg, rgb(70, 130, 180) 0%, rgb(90, 150, 200) 100%);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: bold;
    font-size: 1.1em;
}

.data-table td {
    padding: 1rem;
    border-bottom: 2px solid rgb(220, 230, 240);
    color: rgb(40, 60, 80);
    font-weight: bold;
}

.data-table tr:hover {
    background: rgb(245, 250, 255);
}

.highlight-row {
    background: rgb(255, 250, 200) !important;
    font-weight: bold;
}

.total-row {
    background: linear-gradient(135deg, rgb(70, 130, 180) 0%, rgb(90, 150, 200) 100%) !important;
    color: white !important;
    font-weight: bold;
}

.total-row td {
    border-bottom: none;
    font-size: 1.1em;
    font-weight: bold;
}

.yes-cell {
    color: rgb(0, 120, 0);
    font-weight: bold;
}

.no-cell {
    color: rgb(180, 0, 0);
    font-weight: bold;
}

.calculation-box {
    background: linear-gradient(135deg, rgb(250, 250, 255) 0%, rgb(245, 245, 250) 100%);
    border: 3px solid rgb(100, 130, 180);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 10px rgba(100, 130, 180, 0.2);
    font-weight: bold;
}

.calculation-box p, .calculation-box ul {
    color: rgb(40, 60, 80);
    font-weight: bold;
    line-height: 1.8;
}

/* Flowchart */
.flowchart {
    background: linear-gradient(135deg, rgb(250, 245, 255) 0%, rgb(240, 235, 250) 100%);
    border: 4px solid rgb(130, 100, 180);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 10px rgba(130, 100, 180, 0.2);
    font-weight: bold;
}

.flowchart h4 {
    color: rgb(90, 60, 130);
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
}

.flowchart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
}

.flow-step {
    background: linear-gradient(135deg, rgb(130, 100, 180) 0%, rgb(150, 120, 200) 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
    min-width: 250px;
    box-shadow: 0 4px 8px rgba(130, 100, 180, 0.3);
}

.flow-step.start {
    background: linear-gradient(135deg, rgb(70, 130, 180) 0%, rgb(90, 150, 200) 100%);
}

.flow-step.decision {
    background: linear-gradient(135deg, rgb(255, 140, 0) 0%, rgb(255, 100, 0) 100%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    min-width: 280px;
    padding: 2rem;
}

.flow-step.result-yes {
    background: linear-gradient(135deg, rgb(50, 150, 50) 0%, rgb(70, 170, 70) 100%);
}

.flow-step.result-no {
    background: linear-gradient(135deg, rgb(200, 50, 50) 0%, rgb(220, 70, 70) 100%);
}

.flow-arrow {
    font-size: 2em;
    color: rgb(70, 130, 180);
    font-weight: bold;
}

.flow-split {
    display: flex;
    gap: 4rem;
    margin-top: 1rem;
    font-weight: bold;
}

.flow-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
}

.flow-label {
    background: rgb(255, 200, 50);
    color: rgb(25, 50, 85);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: bold;
}

/* Chapters Grid */
.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    font-weight: bold;
}

.chapter-card {
    background: linear-gradient(135deg, rgb(255, 255, 255) 0%, rgb(245, 250, 255) 100%);
    border: 4px solid rgb(70, 130, 180);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 6px 15px rgba(70, 130, 180, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-weight: bold;
}

.chapter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(70, 130, 180, 0.4);
}

.chapter-card h3 {
    color: rgb(25, 50, 85);
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.chapter-card h4 {
    color: rgb(70, 130, 180);
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 1rem;
}

.chapter-card p {
    color: rgb(60, 80, 100);
    font-size: 1.05em;
    font-weight: bold;
    line-height: 1.8;
    margin: 0.5rem 0;
}

.chapter-card ul {
    color: rgb(60, 80, 100);
    font-weight: bold;
    margin-left: 1.5rem;
}

/* Schedule List */
.schedule-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    font-weight: bold;
}

.schedule-card {
    background: linear-gradient(135deg, rgb(255, 250, 235) 0%, rgb(255, 245, 225) 100%);
    border: 4px solid rgb(200, 140, 60);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 6px 15px rgba(200, 140, 60, 0.3);
    transition: transform 0.3s ease;
    font-weight: bold;
}

.schedule-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(200, 140, 60, 0.4);
}

.schedule-card h3 {
    color: rgb(140, 80, 20);
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.schedule-card p {
    color: rgb(100, 60, 30);
    font-size: 1.05em;
    font-weight: bold;
    line-height: 1.8;
    margin: 0.5rem 0;
}

/* Important Notice */
.important-notice {
    background: linear-gradient(135deg, rgb(255, 245, 220) 0%, rgb(255, 235, 200) 100%);
    border: 4px solid rgb(200, 140, 60);
    border-radius: 15px;
    padding: 2rem;
    margin: 3rem auto;
    max-width: 1200px;
    box-shadow: 0 8px 20px rgba(200, 140, 60, 0.3);
    font-weight: bold;
}

.important-notice h2 {
    color: rgb(140, 80, 20);
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.5rem;
}

.notice-content {
    font-weight: bold;
}

.notice-content p {
    color: rgb(100, 60, 30);
    font-size: 1.1em;
    font-weight: bold;
    line-height: 1.8;
    margin: 1rem 0;
}

.notice-content ul {
    color: rgb(100, 60, 30);
    font-size: 1.1em;
    font-weight: bold;
    margin-left: 2rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    font-weight: bold;
}

.modal-content {
    background: linear-gradient(135deg, rgb(255, 255, 255) 0%, rgb(245, 250, 255) 100%);
    margin: 2% auto;
    padding: 2rem;
    border: 4px solid rgb(70, 130, 180);
    border-radius: 15px;
    width: 90%;
    max-width: 1400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

.close-button {
    color: rgb(180, 0, 0);
    float: right;
    font-size: 3em;
    font-weight: bold;
    cursor: pointer;
    line-height: 0.8;
}

.close-button:hover {
    color: rgb(220, 0, 0);
}

.modal-content h2 {
    color: rgb(25, 50, 85);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2em;
    font-weight: bold;
}

.mind-map-container {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* Back to Top Button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: linear-gradient(135deg, rgb(70, 130, 180) 0%, rgb(90, 150, 200) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(70, 130, 180, 0.4);
    transition: all 0.3s ease;
}

#backToTop:hover {
    background: linear-gradient(135deg, rgb(90, 150, 200) 0%, rgb(110, 170, 220) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(70, 130, 180, 0.5);
}

/* Footer */
.main-footer {
    background: linear-gradient(135deg, rgb(25, 50, 85) 0%, rgb(40, 70, 110) 100%);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    font-weight: bold;
}

.main-footer p {
    margin: 0.5rem 0;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 2em;
        font-weight: bold;
    }
    
    .act-details {
        font-size: 1em;
        font-weight: bold;
    }
    
    .nav-buttons {
        grid-template-columns: 1fr;
    }
    
    .chapters-grid {
        grid-template-columns: 1fr;
    }
    
    .schedule-list {
        grid-template-columns: 1fr;
    }
    
    .flow-split {
        flex-direction: column;
        gap: 1rem;
    }
    
    .data-table {
        font-size: 0.9em;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .progress-bar,
    .quick-nav,
    .nav-btn,
    #backToTop,
    .main-footer,
    .modal {
        display: none !important;
    }
    
    .section-content {
        display: block !important;
    }
    
    .section-card {
        page-break-inside: avoid;
    }
}