/* ========================================
   ALTERNATIVE DISPUTE RESOLUTION SYLLABUS
   CSS STYLESHEET
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: rgb(31, 224, 199);
    color: rgb(20, 20, 30);
    line-height: 1.8;
    padding: 10px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background-color: rgb(31, 224, 199);
    border: 4px solid rgb(208, 31, 224);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(208, 31, 224, 0.3);
}

/* ========================================
   HEADER STYLES
   ======================================== */

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    border-bottom: 3px solid rgb(208, 31, 224);
}

.header h1 {
    font-size: 2.8em;
    font-weight: bold;
    color: rgb(15, 80, 120);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(208, 31, 224, 0.2);
}

.header .subtitle {
    font-size: 1.3em;
    font-weight: bold;
    color: rgb(20, 60, 100);
    margin-bottom: 5px;
}

.header .prescriber {
    font-size: 1.1em;
    font-weight: bold;
    color: rgb(80, 20, 120);
    font-style: italic;
}

/* ========================================
   PRINT SECTION
   ======================================== */

.print-section {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
}

.print-btn {
    background-color: rgb(208, 31, 224);
    color: white;
    font-weight: bold;
    border: 2px solid rgb(15, 80, 120);
    padding: 12px 30px;
    font-size: 1.1em;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(208, 31, 224, 0.4);
}

.print-btn:hover {
    background-color: rgb(180, 20, 200);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(208, 31, 224, 0.6);
}

.print-btn:active {
    transform: translateY(0);
}

@media print {
    .print-section,
    .navigation {
        display: none;
    }
    
    .container {
        border: none;
        box-shadow: none;
        max-width: 100%;
        padding: 20px;
    }
}

/* ========================================
   NAVIGATION STYLES
   ======================================== */

.navigation {
    background-color: rgba(31, 224, 199, 0.7);
    border: 2px solid rgb(208, 31, 224);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.nav-title {
    font-size: 1.2em;
    font-weight: bold;
    color: rgb(15, 80, 120);
    flex-basis: 100%;
    margin-bottom: 10px;
    border-bottom: 2px solid rgb(208, 31, 224);
    padding-bottom: 10px;
}

.nav-btn {
    background-color: rgb(208, 31, 224);
    color: white;
    font-weight: bold;
    border: 2px solid rgb(15, 80, 120);
    padding: 10px 18px;
    font-size: 0.95em;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
}

.nav-btn:hover {
    background-color: rgb(180, 20, 200);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(208, 31, 224, 0.5);
}

.nav-btn:active {
    transform: translateY(0);
}

/* ========================================
   MAIN CONTENT STYLES
   ======================================== */

.content {
    background-color: rgb(31, 224, 199);
}

.section {
    margin-bottom: 35px;
    padding: 20px;
    border-left: 5px solid rgb(208, 31, 224);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.section:hover {
    box-shadow: 0 5px 15px rgba(208, 31, 224, 0.2);
}

.section h2 {
    font-size: 1.8em;
    font-weight: bold;
    color: rgb(15, 80, 120);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgb(208, 31, 224);
}

.subsection {
    margin-left: 20px;
    margin-bottom: 18px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    border-left: 4px solid rgb(208, 31, 224);
}

.subsection h3 {
    font-size: 1.3em;
    font-weight: bold;
    color: rgb(20, 60, 100);
    margin-bottom: 10px;
}

.subsection h4 {
    font-size: 1.1em;
    font-weight: bold;
    color: rgb(80, 20, 120);
    margin-top: 12px;
    margin-bottom: 8px;
}

.subsection p {
    font-size: 1em;
    font-weight: bold;
    color: rgb(20, 20, 30);
    line-height: 1.8;
}

.subsection ul {
    margin: 15px 0;
    padding-left: 30px;
}

.subsection li {
    font-weight: bold;
    color: rgb(20, 20, 30);
    margin-bottom: 8px;
    list-style: none;
}

/* ========================================
   TABLE STYLES
   ======================================== */

.syllabus-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgb(208, 31, 224);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(208, 31, 224, 0.2);
}

.syllabus-table thead {
    background-color: rgb(208, 31, 224);
    color: white;
}

.syllabus-table th {
    padding: 18px;
    font-size: 1.05em;
    font-weight: bold;
    text-align: left;
    border-right: 2px solid rgba(255, 255, 255, 0.3);
}

.syllabus-table th:last-child {
    border-right: none;
}

.syllabus-table tbody tr {
    border-bottom: 2px solid rgb(208, 31, 224);
    transition: all 0.3s ease;
}

.syllabus-table tbody tr:hover {
    background-color: rgba(208, 31, 224, 0.2);
}

.syllabus-table tbody tr:last-child {
    border-bottom: none;
}

.syllabus-table td {
    padding: 16px 18px;
    font-weight: bold;
    color: rgb(20, 20, 30);
    font-size: 1em;
    border-right: 1px solid rgba(208, 31, 224, 0.3);
}

.syllabus-table td:last-child {
    border-right: none;
}

/* ========================================
   FLOWCHART STYLES
   ======================================== */

.flowchart {
    background-color: rgba(255, 255, 255, 0.3);
    border: 2px solid rgb(208, 31, 224);
    border-radius: 8px;
    padding: 30px;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.flowchart-box {
    background-color: rgb(208, 31, 224);
    color: white;
    padding: 18px 28px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.05em;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 4px 10px rgba(208, 31, 224, 0.4);
    border: 2px solid rgb(15, 80, 120);
}

.flowchart-box.start {
    background-color: rgb(15, 100, 150);
    border: 3px solid rgb(208, 31, 224);
}

.flowchart-box.decision {
    background-color: rgb(100, 50, 150);
    border-radius: 50%;
    min-width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgb(208, 31, 224);
}

.flowchart-box.success {
    background-color: rgb(30, 130, 80);
    border: 3px solid rgb(208, 31, 224);
}

.flowchart-box.warning {
    background-color: rgb(180, 50, 50);
    border: 3px solid rgb(208, 31, 224);
}

.flowchart-arrow,
.flowchart-arrow-yes,
.flowchart-arrow-no {
    font-size: 1.4em;
    font-weight: bold;
    color: rgb(208, 31, 224);
    text-align: center;
}

.flowchart-arrow-yes {
    color: rgb(30, 130, 80);
}

.flowchart-arrow-no {
    color: rgb(180, 50, 50);
}

.flowchart-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.option-box {
    background-color: rgb(208, 31, 224);
    color: white;
    padding: 15px 20px;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    border: 2px solid rgb(15, 80, 120);
    flex: 1;
    min-width: 150px;
}

/* ========================================
   BOOKS CONTAINER STYLES
   ======================================== */

.books-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.book-item {
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgb(208, 31, 224);
    border-radius: 8px;
    padding: 18px;
    transition: all 0.3s ease;
}

.book-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(208, 31, 224, 0.3);
    border-color: rgb(15, 80, 120);
}

.book-item h4 {
    font-size: 1.1em;
    font-weight: bold;
    color: rgb(80, 20, 120);
    margin-bottom: 10px;
}

.book-item p {
    font-weight: bold;
    color: rgb(20, 20, 30);
    font-size: 0.95em;
}

/* ========================================
   OUTCOMES CONTAINER STYLES
   ======================================== */

.outcomes-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.outcome-box {
    background-color: rgb(208, 31, 224);
    color: white;
    border: 2px solid rgb(15, 80, 120);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.outcome-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(208, 31, 224, 0.4);
}

.outcome-box strong {
    font-size: 1.1em;
    display: block;
    margin-bottom: 10px;
}

.outcome-box p {
    font-size: 0.95em;
    font-weight: bold;
    line-height: 1.6;
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.footer {
    text-align: center;
    border-top: 3px solid rgb(208, 31, 224);
    padding-top: 20px;
    margin-top: 30px;
    font-weight: bold;
    color: rgb(15, 80, 120);
}

.footer p {
    margin: 8px 0;
    font-size: 0.95em;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .header .subtitle {
        font-size: 1.1em;
    }
    
    .navigation {
        flex-direction: column;
    }
    
    .nav-btn {
        width: 100%;
    }
    
    .flowchart-options {
        flex-direction: column;
    }
    
    .option-box {
        width: 100%;
    }
    
    .books-container {
        grid-template-columns: 1fr;
    }
    
    .outcomes-container {
        grid-template-columns: 1fr;
    }
    
    .syllabus-table {
        font-size: 0.9em;
    }
    
    .syllabus-table th,
    .syllabus-table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5em;
    }
    
    .header .subtitle,
    .header .prescriber {
        font-size: 0.9em;
    }
    
    .section h2 {
        font-size: 1.3em;
    }
    
    .subsection h3 {
        font-size: 1.05em;
    }
    
    .print-btn {
        padding: 10px 20px;
        font-size: 0.95em;
    }
    
    .flowchart-box.decision {
        min-width: 140px;
        height: 140px;
        font-size: 0.9em;
    }
}

/* ========================================
   TEXT STYLING
   ======================================== */

strong {
    font-weight: bold;
}

em {
    font-style: italic;
    font-weight: bold;
}

/* ========================================
   SCROLL BEHAVIOR
   ======================================== */

html {
    scroll-behavior: smooth;
}

/* ========================================
   SELECTION STYLING
   ======================================== */

::selection {
    background-color: rgb(208, 31, 224);
    color: white;
}

::-moz-selection {
    background-color: rgb(208, 31, 224);
    color: white;
}