/* ========================================
   ANGER MANAGEMENT EDUCATIONAL RESOURCE
   Professional Stylesheet
   ======================================== */

/* ========== GLOBAL 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, 255) 0%, rgb(230, 240, 250) 100%);
    color: rgb(33, 37, 41);
    font-weight: 600;
    min-height: 100vh;
}

/* ========== DISCLAIMER ========== */
.disclaimer {
    background: linear-gradient(135deg, rgb(255, 235, 59) 0%, rgb(255, 193, 7) 100%);
    color: rgb(51, 51, 51);
    padding: 15px 20px;
    text-align: center;
    border-bottom: 4px solid rgb(255, 152, 0);
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ========== HEADER ========== */
header {
    background: linear-gradient(135deg, rgb(26, 199, 126) 0%, rgb(13, 199, 161) 100%);
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 40px 20px;
    border-bottom: 6px solid rgb(21, 101, 192);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.subtitle {
    font-size: 20px;
    font-weight: 700;
    font-style: italic;
    opacity: 0.95;
}

/* ========== PRINT BUTTON ========== */
.print-section {
    text-align: center;
    padding: 20px;
    background: rgb(255, 255, 255);
    border-bottom: 3px solid rgb(0, 150, 136);
}

.print-btn {
    background: linear-gradient(135deg, rgb(0, 150, 136) 0%, rgb(0, 121, 107) 100%);
    color: rgb(255, 255, 255);
    border: 3px solid rgb(0, 105, 92);
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.print-btn:hover {
    background: linear-gradient(135deg, rgb(0, 121, 107) 0%, rgb(0, 105, 92) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* ========== NAVIGATION ========== */
.navigation {
    background: linear-gradient(135deg, rgb(255, 255, 255) 0%, rgb(245, 245, 245) 100%);
    padding: 30px;
    border: 4px solid rgb(63, 81, 181);
    border-radius: 12px;
    margin: 30px auto;
    max-width: 1400px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.navigation h2 {
    color: rgb(63, 81, 181);
    font-size: 28px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.nav-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.nav-btn {
    background: linear-gradient(135deg, rgb(63, 81, 181) 0%, rgb(48, 63, 159) 100%);
    color: rgb(255, 255, 255);
    border: 3px solid rgb(40, 53, 147);
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover {
    background: linear-gradient(135deg, rgb(48, 63, 159) 0%, rgb(40, 53, 147) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ========== MAIN CONTENT ========== */
main {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

/* ========== CONTENT SECTIONS ========== */
.content-section {
    background: rgb(255, 255, 255);
    padding: 40px;
    margin-bottom: 30px;
    border: 5px solid rgb(33, 150, 243);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.content-section h2 {
    color: rgb(13, 71, 161);
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 4px solid rgb(33, 150, 243);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.content-section h3 {
    color: rgb(21, 101, 192);
    font-size: 24px;
    font-weight: 800;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* ========== CONTENT BOXES ========== */
.content-box {
    background: linear-gradient(135deg, rgb(232, 245, 233) 0%, rgb(220, 237, 220) 100%);
    padding: 25px;
    border: 4px solid rgb(76, 175, 80);
    border-radius: 10px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.content-box p {
    font-weight: 700;
    margin-bottom: 15px;
    color: rgb(46, 125, 50);
    font-size: 16px;
}

.content-box ul {
    list-style-type: none;
    padding-left: 0;
}

.content-box ul li {
    padding: 12px;
    margin-bottom: 12px;
    background: rgb(255, 255, 255);
    border-left: 5px solid rgb(76, 175, 80);
    border-radius: 6px;
    font-weight: 700;
    color: rgb(27, 94, 32);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

.content-box ul ul {
    margin-top: 10px;
    margin-left: 20px;
}

.content-box ul ul li {
    border-left: 4px solid rgb(129, 199, 132);
    font-size: 15px;
}

/* ========== TABLES ========== */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border: 4px solid rgb(63, 81, 181);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.info-table thead {
    background: linear-gradient(135deg, rgb(63, 81, 181) 0%, rgb(48, 63, 159) 100%);
    color: rgb(255, 255, 255);
}

.info-table th {
    padding: 18px;
    text-align: left;
    font-weight: 900;
    font-size: 16px;
    border-bottom: 3px solid rgb(40, 53, 147);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-table td {
    padding: 15px 18px;
    border-bottom: 2px solid rgb(224, 224, 224);
    font-weight: 700;
    color: rgb(33, 37, 41);
}

.info-table tbody tr {
    background: rgb(255, 255, 255);
    transition: background 0.3s ease;
}

.info-table tbody tr:nth-child(even) {
    background: rgb(245, 245, 245);
}

.info-table tbody tr:hover {
    background: linear-gradient(135deg, rgb(227, 242, 253) 0%, rgb(207, 232, 252) 100%);
}

.info-table td:first-child {
    font-weight: 800;
    color: rgb(13, 71, 161);
}

/* ========== Q&A SECTION ========== */
.qa-section {
    background: linear-gradient(135deg, rgb(255, 243, 224) 0%, rgb(255, 236, 179) 100%);
    padding: 25px;
    margin: 30px 0;
    border: 4px solid rgb(255, 152, 0);
    border-radius: 10px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
}

.qa-section h3 {
    color: rgb(230, 81, 0);
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 12px;
}

.question {
    font-size: 18px;
    font-weight: 800;
    color: rgb(191, 54, 12);
    margin-bottom: 15px;
    line-height: 1.6;
}

.answer-btn {
    background: linear-gradient(135deg, rgb(255, 152, 0) 0%, rgb(245, 124, 0) 100%);
    color: rgb(255, 255, 255);
    border: 3px solid rgb(230, 81, 0);
    padding: 10px 25px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    margin-top: 10px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.answer-btn:hover {
    background: linear-gradient(135deg, rgb(245, 124, 0) 0%, rgb(230, 81, 0) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.answer {
    margin-top: 20px;
    padding: 20px;
    background: rgb(255, 255, 255);
    border: 3px solid rgb(255, 152, 0);
    border-radius: 8px;
    transition: all 0.5s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.answer p {
    font-weight: 700;
    color: rgb(62, 39, 35);
    line-height: 1.8;
    font-size: 16px;
}

.hidden {
    display: none;
}

/* ========== FLOWCHART CONTAINER ========== */
.flowchart-container {
    background: linear-gradient(135deg, rgb(245, 245, 245) 0%, rgb(238, 238, 238) 100%);
    padding: 30px;
    border: 5px solid rgb(96, 125, 139);
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    overflow-x: auto;
}

.flowchart-container svg {
    width: 100%;
    height: auto;
    min-width: 600px;
}

/* ========== MIND MAP CONTAINER ========== */
.mindmap-container {
    background: linear-gradient(135deg, rgb(250, 250, 250) 0%, rgb(245, 245, 245) 100%);
    padding: 30px;
    border: 5px solid rgb(103, 58, 183);
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    overflow-x: auto;
}

.mindmap-container svg {
    width: 100%;
    height: auto;
    min-width: 800px;
}

/* ========== FOOTER ========== */
footer {
    background: linear-gradient(135deg, rgb(38, 50, 56) 0%, rgb(55, 71, 79) 100%);
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 30px 20px;
    border-top: 5px solid rgb(69, 90, 100);
    margin-top: 50px;
    box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.2);
}

footer p {
    margin: 10px 0;
    font-weight: 700;
    font-size: 15px;
}

footer strong {
    color: rgb(255, 235, 59);
    font-weight: 900;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    header h1 {
        font-size: 32px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .content-section {
        padding: 25px;
    }
    
    .content-section h2 {
        font-size: 24px;
    }
    
    .content-section h3 {
        font-size: 20px;
    }
    
    .nav-buttons {
        grid-template-columns: 1fr;
    }
    
    .info-table {
        font-size: 13px;
    }
    
    .info-table th,
    .info-table td {
        padding: 12px 10px;
    }
    
    .flowchart-container,
    .mindmap-container {
        padding: 15px;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    body {
        background: rgb(255, 255, 255);
        color: rgb(0, 0, 0);
    }
    
    .print-section,
    .navigation {
        display: none;
    }
    
    .disclaimer {
        background: rgb(255, 255, 255);
        border: 2px solid rgb(0, 0, 0);
        page-break-after: avoid;
    }
    
    header {
        background: rgb(255, 255, 255);
        color: rgb(0, 0, 0);
        border-bottom: 3px solid rgb(0, 0, 0);
    }
    
    .content-section {
        page-break-inside: avoid;
        border: 2px solid rgb(0, 0, 0);
        box-shadow: none;
    }
    
    .answer-btn {
        display: none;
    }
    
    .answer {
        display: block !important;
        border: 2px solid rgb(0, 0, 0);
    }
    
    .info-table {
        border: 2px solid rgb(0, 0, 0);
    }
    
    .info-table thead {
        background: rgb(220, 220, 220);
        color: rgb(0, 0, 0);
    }
    
    footer {
        background: rgb(255, 255, 255);
        color: rgb(0, 0, 0);
        border-top: 2px solid rgb(0, 0, 0);
    }
}

/* ========== ACCESSIBILITY ========== */
:focus {
    outline: 3px solid rgb(255, 152, 0);
    outline-offset: 2px;
}

button:focus,
.nav-btn:focus,
.answer-btn:focus,
.print-btn:focus {
    outline: 3px solid rgb(255, 193, 7);
    outline-offset: 3px;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: fadeIn 0.6s ease-out;
}

/* ========== SMOOTH SCROLLING ========== */
html {
    scroll-behavior: smooth;
}