/* ===================================
   ICDS Educational Resource - CSS
   Professional Styling with RGB Colors
   =================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, rgb(240, 248, 255) 0%, rgb(230, 240, 250) 100%);
    color: rgb(33, 33, 33);
    font-weight: 600;
    min-height: 100vh;
}

/* Print-specific styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .print-btn, .main-nav, .qa-button .toggle-icon {
        display: none !important;
    }
    
    .print-header {
        display: block !important;
    }
    
    .answer {
        display: block !important;
        border: 1px solid rgb(200, 200, 200) !important;
    }
    
    .content-section {
        page-break-inside: avoid;
    }
    
    h2, h3 {
        page-break-after: avoid;
    }
}

.print-header {
    display: none;
    text-align: center;
    padding: 20px;
    border-bottom: 3px solid rgb(0, 102, 204);
    margin-bottom: 20px;
}

.print-header h1 {
    color: rgb(0, 102, 204);
    font-weight: 800;
}

.print-header .disclaimer {
    font-size: 0.9em;
    color: rgb(150, 0, 0);
    font-weight: 700;
    margin-top: 10px;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, rgb(0, 102, 204) 0%, rgb(0, 153, 204) 100%);
    color: rgb(255, 255, 255);
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-bottom: 5px solid rgb(0, 76, 153);
}

header h1 {
    font-size: 2.5em;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2em;
    font-weight: 700;
    color: rgb(255, 255, 200);
    margin-bottom: 15px;
}

.print-btn {
    background-color: rgb(255, 165, 0);
    color: rgb(255, 255, 255);
    border: 3px solid rgb(255, 140, 0);
    padding: 12px 25px;
    font-size: 1em;
    font-weight: 800;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.print-btn:hover {
    background-color: rgb(255, 140, 0);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Navigation Styles */
.main-nav {
    background-color: rgb(245, 245, 255);
    padding: 20px;
    margin: 20px auto;
    max-width: 1200px;
    border-radius: 12px;
    border: 3px solid rgb(100, 149, 237);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.main-nav h3 {
    color: rgb(0, 76, 153);
    font-weight: 800;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.4em;
}

.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.nav-buttons button {
    background: linear-gradient(135deg, rgb(100, 149, 237) 0%, rgb(65, 105, 225) 100%);
    color: rgb(255, 255, 255);
    border: 2px solid rgb(0, 76, 153);
    padding: 10px 20px;
    font-weight: 800;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95em;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.nav-buttons button:hover {
    background: linear-gradient(135deg, rgb(65, 105, 225) 0%, rgb(0, 76, 153) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Content Sections */
.content-section {
    background-color: rgb(255, 255, 255);
    margin: 25px 0;
    padding: 30px;
    border-radius: 12px;
    border: 3px solid rgb(70, 130, 180);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.content-section h2 {
    color: rgb(0, 76, 153);
    font-weight: 900;
    font-size: 2em;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 4px solid rgb(100, 149, 237);
}

.content-section h3 {
    color: rgb(25, 25, 112);
    font-weight: 800;
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 15px;
}

.content-section h4 {
    color: rgb(70, 130, 180);
    font-weight: 800;
    font-size: 1.2em;
    margin-top: 15px;
    margin-bottom: 10px;
}

.content-section p {
    font-weight: 600;
    margin-bottom: 12px;
    color: rgb(50, 50, 50);
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, rgb(230, 240, 255) 0%, rgb(220, 235, 255) 100%);
    border-left: 5px solid rgb(0, 102, 204);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    border: 2px solid rgb(100, 149, 237);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.info-box p, .info-box ul, .info-box ol {
    font-weight: 700;
    color: rgb(25, 25, 112);
}

/* Lists */
.styled-list {
    list-style-type: none;
    padding-left: 0;
}

.styled-list li {
    background-color: rgb(248, 250, 255);
    margin: 10px 0;
    padding: 15px;
    border-left: 5px solid rgb(100, 149, 237);
    border: 2px solid rgb(200, 220, 240);
    border-radius: 6px;
    font-weight: 700;
    color: rgb(40, 40, 40);
}

.styled-list li strong {
    color: rgb(0, 76, 153);
    font-weight: 900;
}

/* Tables */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 3px solid rgb(100, 149, 237);
    border-radius: 8px;
    overflow: hidden;
}

.info-table caption {
    font-weight: 900;
    font-size: 1.3em;
    padding: 15px;
    background: linear-gradient(135deg, rgb(100, 149, 237) 0%, rgb(65, 105, 225) 100%);
    color: rgb(255, 255, 255);
    text-align: center;
}

.info-table thead {
    background: linear-gradient(135deg, rgb(70, 130, 180) 0%, rgb(100, 149, 237) 100%);
    color: rgb(255, 255, 255);
}

.info-table th {
    padding: 15px;
    text-align: left;
    font-weight: 900;
    font-size: 1.05em;
    border: 2px solid rgb(100, 149, 237);
}

.info-table td {
    padding: 12px;
    border: 2px solid rgb(200, 220, 240);
    font-weight: 700;
    color: rgb(40, 40, 40);
}

.info-table tbody tr:nth-child(even) {
    background-color: rgb(245, 248, 255);
}

.info-table tbody tr:hover {
    background-color: rgb(230, 240, 255);
    transition: background-color 0.3s ease;
}

/* Example Boxes */
.example-box {
    background: linear-gradient(135deg, rgb(255, 250, 240) 0%, rgb(255, 245, 230) 100%);
    border-left: 5px solid rgb(255, 140, 0);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    border: 2px solid rgb(255, 200, 100);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.example-box h4 {
    color: rgb(204, 102, 0);
    font-weight: 900;
    margin-bottom: 12px;
}

.example-box p, .example-box ul {
    font-weight: 700;
    color: rgb(60, 40, 20);
}

.example-box strong {
    color: rgb(204, 102, 0);
    font-weight: 900;
}

/* Case Law Boxes */
.case-law-box {
    background: linear-gradient(135deg, rgb(240, 255, 240) 0%, rgb(230, 250, 230) 100%);
    border-left: 5px solid rgb(34, 139, 34);
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    border: 2px solid rgb(144, 238, 144);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.case-law-box h4 {
    color: rgb(0, 100, 0);
    font-weight: 900;
    margin-bottom: 12px;
}

.case-law-box ul {
    list-style-type: none;
    padding-left: 0;
}

.case-law-box li {
    margin: 8px 0;
    font-weight: 700;
    color: rgb(25, 25, 25);
}

.case-law-box li strong {
    color: rgb(0, 100, 0);
    font-weight: 900;
}

/* Q&A Section */
.qa-section {
    margin: 20px 0;
}

.qa-button {
    width: 100%;
    background: linear-gradient(135deg, rgb(147, 112, 219) 0%, rgb(138, 43, 226) 100%);
    color: rgb(255, 255, 255);
    border: 3px solid rgb(106, 90, 205);
    padding: 15px;
    text-align: left;
    cursor: pointer;
    font-weight: 800;
    font-size: 1.05em;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.qa-button:hover {
    background: linear-gradient(135deg, rgb(138, 43, 226) 0%, rgb(106, 90, 205) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.question-text {
    flex: 1;
    font-weight: 800;
}

.toggle-icon {
    font-size: 1.5em;
    font-weight: 900;
    transition: transform 0.3s ease;
}

.qa-button.active .toggle-icon {
    transform: rotate(45deg);
}

.answer {
    background-color: rgb(250, 245, 255);
    border: 2px solid rgb(147, 112, 219);
    border-top: none;
    padding: 20px;
    border-radius: 0 0 8px 8px;
    margin-top: -8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.answer.hidden {
    display: none;
}

.answer p, .answer ul {
    font-weight: 700;
    color: rgb(50, 25, 75);
}

.answer strong {
    color: rgb(106, 90, 205);
    font-weight: 900;
}

.answer ul {
    margin-left: 20px;
    margin-top: 10px;
}

.answer li {
    margin: 8px 0;
}

/* Flowchart Styles */
.flowchart-container {
    padding: 30px;
    background: linear-gradient(135deg, rgb(255, 255, 255) 0%, rgb(248, 248, 255) 100%);
    border-radius: 12px;
    border: 3px solid rgb(100, 149, 237);
    margin: 20px 0;
    text-align: center;
}

.flowchart-box {
    display: inline-block;
    padding: 15px 25px;
    margin: 10px;
    border-radius: 8px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 3px solid;
}

.flowchart-box.start {
    background: linear-gradient(135deg, rgb(50, 205, 50) 0%, rgb(34, 139, 34) 100%);
    color: rgb(255, 255, 255);
    border-color: rgb(0, 100, 0);
    font-size: 1.2em;
}

.flowchart-box.end {
    background: linear-gradient(135deg, rgb(220, 20, 60) 0%, rgb(178, 34, 34) 100%);
    color: rgb(255, 255, 255);
    border-color: rgb(139, 0, 0);
    font-size: 1.2em;
}

.flowchart-box.decision {
    background: linear-gradient(135deg, rgb(255, 215, 0) 0%, rgb(255, 193, 7) 100%);
    color: rgb(0, 0, 0);
    border-color: rgb(255, 140, 0);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    padding: 20px 30px;
    font-weight: 900;
}

.flowchart-box.process {
    background: linear-gradient(135deg, rgb(100, 149, 237) 0%, rgb(65, 105, 225) 100%);
    color: rgb(255, 255, 255);
    border-color: rgb(0, 76, 153);
}

.flowchart-box.option {
    background: linear-gradient(135deg, rgb(255, 182, 193) 0%, rgb(255, 160, 180) 100%);
    color: rgb(139, 0, 0);
    border-color: rgb(220, 20, 60);
    font-size: 0.95em;
}

.flowchart-box.result {
    background: linear-gradient(135deg, rgb(176, 224, 230) 0%, rgb(135, 206, 235) 100%);
    color: rgb(0, 76, 153);
    border-color: rgb(70, 130, 180);
    font-size: 0.9em;
}

.arrow {
    font-size: 2em;
    font-weight: 900;
    color: rgb(0, 76, 153);
    margin: 5px 0;
}

.flowchart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.flowchart-path {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Mind Map Styles */
.mindmap-container {
    position: relative;
    padding: 40px;
    background: linear-gradient(135deg, rgb(255, 255, 255) 0%, rgb(245, 250, 255) 100%);
    border-radius: 12px;
    border: 3px solid rgb(100, 149, 237);
    margin: 20px 0;
    min-height: 1000px;
}

.mindmap-center {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
}

.mindmap-node {
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 3px solid;
}

.mindmap-node.central {
    background: linear-gradient(135deg, rgb(0, 102, 204) 0%, rgb(0, 153, 204) 100%);
    color: rgb(255, 255, 255);
    border-color: rgb(0, 76, 153);
    font-size: 1.4em;
    padding: 30px 40px;
    min-width: 300px;
}

.mindmap-branches {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.mindmap-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.mindmap-node.level-1 {
    background: linear-gradient(135deg, rgb(100, 149, 237) 0%, rgb(65, 105, 225) 100%);
    color: rgb(255, 255, 255);
    border-color: rgb(0, 76, 153);
    font-size: 1.1em;
    min-width: 150px;
}

.mindmap-node.level-1 p {
    font-size: 0.85em;
    margin-top: 5px;
    font-weight: 700;
}

.mindmap-subnodes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.mindmap-node.level-2 {
    background: linear-gradient(135deg, rgb(176, 224, 230) 0%, rgb(135, 206, 235) 100%);
    color: rgb(0, 76, 153);
    border-color: rgb(70, 130, 180);
    font-size: 0.85em;
    padding: 10px 15px;
    width: 100%;
}

.mindmap-connector {
    width: 3px;
    height: 30px;
    background: linear-gradient(180deg, rgb(0, 102, 204) 0%, rgb(100, 149, 237) 100%);
}

.mindmap-legend {
    margin-top: 50px;
    padding: 25px;
    background: linear-gradient(135deg, rgb(255, 250, 205) 0%, rgb(255, 245, 180) 100%);
    border-radius: 10px;
    border: 3px solid rgb(255, 215, 0);
}

.mindmap-legend h4 {
    color: rgb(204, 102, 0);
    font-weight: 900;
    margin-bottom: 15px;
}

.mindmap-legend ul {
    list-style-type: none;
    padding-left: 0;
}

.mindmap-legend li {
    margin: 10px 0;
    font-weight: 700;
    color: rgb(60, 40, 20);
}

.mindmap-legend strong {
    color: rgb(204, 102, 0);
    font-weight: 900;
}

/* Summary Grid */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.summary-card {
    background: linear-gradient(135deg, rgb(255, 255, 255) 0%, rgb(245, 250, 255) 100%);
    padding: 25px;
    border-radius: 10px;
    border: 3px solid rgb(100, 149, 237);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.summary-card h3 {
    color: rgb(0, 76, 153);
    font-weight: 900;
    margin-bottom: 15px;
    font-size: 1.3em;
    border-bottom: 3px solid rgb(100, 149, 237);
    padding-bottom: 8px;
}

.summary-card ul {
    list-style-type: none;
    padding-left: 0;
}

.summary-card li {
    margin: 10px 0;
    padding-left: 25px;
    position: relative;
    font-weight: 700;
    color: rgb(40, 40, 40);
}

.summary-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: rgb(34, 139, 34);
    font-weight: 900;
    font-size: 1.2em;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgb(25, 25, 112) 0%, rgb(0, 76, 153) 100%);
    color: rgb(255, 255, 255);
    padding: 30px;
    text-align: center;
    margin-top: 50px;
    border-top: 5px solid rgb(0, 102, 204);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer p {
    margin: 10px 0;
    font-weight: 700;
    color: rgb(255, 255, 255);
}

.footer strong {
    color: rgb(255, 215, 0);
    font-weight: 900;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }
    
    .subtitle {
        font-size: 1em;
    }
    
    .nav-buttons {
        flex-direction: column;
    }
    
    .nav-buttons button {
        width: 100%;
    }
    
    .content-section h2 {
        font-size: 1.6em;
    }
    
    .flowchart-grid {
        grid-template-columns: 1fr;
    }
    
    .mindmap-branches {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .info-table {
        font-size: 0.85em;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Strong emphasis throughout */
strong {
    font-weight: 900;
}

/* Ensure all text is bold */
body, p, li, td, th, span, div {
    font-weight: 600;
}

h1, h2, h3, h4, h5, h6, strong, b {
    font-weight: 900;
}

/* Additional emphasis for important content */
.content-section ul li,
.content-section ol li {
    font-weight: 700;
}

/* Hover effects for interactive elements */
.info-table tbody tr,
.summary-card,
.example-box,
.case-law-box,
.info-box {
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Accessibility improvements */
button:focus,
a:focus {
    outline: 3px solid rgb(255, 215, 0);
    outline-offset: 2px;
}

/* Print optimization */
@page {
    margin: 2cm;
}

@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}