/* ============================================
   MALIMATH COMMITTEE REPORT - STYLESHEET
   Educational Resource Webpage
   ============================================ */

/* ============================================
   ROOT VARIABLES & RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: rgb(101, 201, 10);
    --border-color: rgb(212, 106, 152);
    --text-color: #000000;
    --heading-color: #1a1a1a;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.3);
    --hover-bg: rgba(212, 106, 152, 0.2);
}

/* ============================================
   BODY & GENERAL STYLES
   ============================================ */
body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background-color: var(--primary-bg);
    border: 5px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 0 20px var(--shadow);
}

/* ============================================
   HEADER STYLES
   ============================================ */
.main-header {
    background: linear-gradient(135deg, var(--primary-bg), rgba(101, 201, 10, 0.8));
    border-bottom: 4px solid var(--border-color);
    padding: 30px;
    text-align: center;
}

.main-header h1 {
    font-size: 2.8em;
    font-weight: bold;
    color: var(--heading-color);
    text-transform: uppercase;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 1em;
    font-weight: bold;
    color: #d32f2f;
    font-style: italic;
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
}

/* ============================================
   PRINT BUTTON
   ============================================ */
.print-section {
    text-align: center;
    padding: 20px;
    background-color: rgba(212, 106, 152, 0.15);
    border-bottom: 3px solid var(--border-color);
}

.print-btn {
    background-color: var(--border-color);
    color: var(--white);
    font-weight: bold;
    font-size: 1.2em;
    padding: 15px 40px;
    border: 3px solid var(--heading-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px var(--shadow);
}

.print-btn:hover {
    background-color: rgba(212, 106, 152, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px var(--shadow);
}

/* ============================================
   NAVIGATION MENU
   ============================================ */
.nav-menu {
    background-color: rgba(212, 106, 152, 0.2);
    border: 3px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin: 20px;
}

.nav-menu h2 {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--heading-color);
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
}

.nav-menu ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.nav-menu li {
    margin: 0;
}

.nav-btn {
    width: 100%;
    background-color: var(--border-color);
    color: var(--white);
    font-weight: bold;
    font-size: 1.1em;
    padding: 12px 20px;
    border: 2px solid var(--heading-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.nav-btn:hover {
    background-color: rgba(212, 106, 152, 0.7);
    transform: translateX(5px);
    box-shadow: 0 4px 8px var(--shadow);
}

/* ============================================
   MAIN CONTENT SECTIONS
   ============================================ */
.main-content {
    padding: 20px;
}

.content-section {
    background-color: rgba(255, 255, 255, 0.4);
    border: 4px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 4px 12px var(--shadow);
}

.content-section h2 {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--heading-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--border-color);
    text-transform: uppercase;
}

.content-section h3 {
    font-size: 1.7em;
    font-weight: bold;
    color: var(--heading-color);
    margin-top: 25px;
    margin-bottom: 15px;
}

.content-section h4 {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--heading-color);
    margin-top: 20px;
    margin-bottom: 12px;
}

.content-section p {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.8;
}

.content-section ul,
.content-section ol {
    margin-left: 30px;
    margin-bottom: 20px;
}

.content-section li {
    font-size: 1.05em;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.7;
}

.content-section ul li ul {
    margin-top: 10px;
}

.content-section ul li ul li {
    font-size: 1em;
    font-weight: bold;
}

/* ============================================
   EXAMPLE BOXES
   ============================================ */
.example-box {
    background-color: rgba(255, 255, 255, 0.6);
    border: 3px solid var(--border-color);
    border-left: 8px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 3px 10px var(--shadow);
}

.example-box p {
    font-weight: bold;
}

.example-box ul li {
    font-weight: bold;
}

/* ============================================
   CASE LAW BOXES
   ============================================ */
.case-box {
    background-color: rgba(255, 255, 255, 0.7);
    border: 4px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    margin: 25px 0;
    box-shadow: 0 4px 12px var(--shadow);
}

.case-box h4 {
    color: var(--border-color);
    font-size: 1.5em;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 12px;
}

.quote {
    background-color: rgba(212, 106, 152, 0.15);
    border-left: 6px solid var(--border-color);
    padding: 20px;
    margin: 20px 0;
    font-style: italic;
    font-weight: bold;
    font-size: 1.15em;
    border-radius: 5px;
}

/* ============================================
   FLOWCHART STYLES
   ============================================ */
.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px;
}

.flow-box {
    background-color: var(--white);
    border: 4px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    margin: 10px 0;
    width: 100%;
    box-shadow: 0 4px 10px var(--shadow);
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
}

.flow-box.start {
    background: linear-gradient(135deg, rgba(212, 106, 152, 0.3), var(--white));
    border-width: 5px;
}

.flow-box.end {
    background: linear-gradient(135deg, var(--white), rgba(101, 201, 10, 0.3));
    border-width: 5px;
}

.flow-box.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
}

.split-section {
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.arrow {
    font-size: 3em;
    font-weight: bold;
    color: var(--border-color);
    margin: 5px 0;
}

/* ============================================
   TABLE STYLES
   ============================================ */
.table-container {
    overflow-x: auto;
    margin: 25px 0;
    border: 3px solid var(--border-color);
    border-radius: 8px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    font-weight: bold;
}

.comparison-table thead {
    background-color: var(--border-color);
    color: var(--white);
}

.comparison-table th {
    padding: 18px;
    text-align: left;
    font-size: 1.15em;
    font-weight: bold;
    border: 2px solid var(--heading-color);
}

.comparison-table td {
    padding: 15px;
    border: 2px solid var(--border-color);
    font-size: 1.05em;
    font-weight: bold;
}

.comparison-table tbody tr:nth-child(even) {
    background-color: rgba(212, 106, 152, 0.1);
}

.comparison-table tbody tr:hover {
    background-color: rgba(212, 106, 152, 0.2);
}

/* Status Colors */
.status-implemented {
    background-color: rgba(76, 175, 80, 0.3);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

.status-partial {
    background-color: rgba(255, 193, 7, 0.3);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

.status-pending {
    background-color: rgba(255, 152, 0, 0.3);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

.status-rejected {
    background-color: rgba(244, 67, 54, 0.3);
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

.legend {
    background-color: rgba(255, 255, 255, 0.7);
    border: 3px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.legend p {
    font-weight: bold;
    margin: 8px 0;
}

/* ============================================
   Q&A SECTION STYLES
   ============================================ */
.qa-container {
    margin: 20px 0;
}

.qa-item {
    background-color: rgba(255, 255, 255, 0.6);
    border: 3px solid var(--border-color);
    border-radius: 8px;
    margin: 15px 0;
    overflow: hidden;
    box-shadow: 0 3px 8px var(--shadow);
}

.question-btn {
    width: 100%;
    background-color: var(--border-color);
    color: var(--white);
    font-weight: bold;
    font-size: 1.2em;
    padding: 20px;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.question-btn:hover {
    background-color: rgba(212, 106, 152, 0.8);
}

.q-number {
    font-weight: bold;
    margin-right: 10px;
}

.toggle-icon {
    font-size: 1.2em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

.answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background-color: rgba(255, 255, 255, 0.9);
}

.answer.show {
    max-height: 3000px;
    padding: 25px;
    border-top: 3px solid var(--border-color);
}

.answer p {
    font-weight: bold;
    margin-bottom: 15px;
}

.answer ul {
    margin-left: 25px;
}

.answer li {
    font-weight: bold;
    margin-bottom: 8px;
}

/* ============================================
   FOOTER STYLES
   ============================================ */
.main-footer {
    background-color: rgba(212, 106, 152, 0.2);
    border-top: 4px solid var(--border-color);
    padding: 30px;
    text-align: center;
    margin-top: 30px;
}

.main-footer p {
    font-size: 1em;
    font-weight: bold;
    margin: 10px 0;
    line-height: 1.6;
}

/* ============================================
   PRINT MEDIA STYLES
   ============================================ */
@media print {
    body {
        background-color: white;
        padding: 0;
    }
    
    .container {
        border: none;
        box-shadow: none;
    }
    
    .print-section,
    .nav-menu {
        display: none;
    }
    
    .content-section {
        page-break-inside: avoid;
        border: 2px solid #000;
    }
    
    .answer {
        max-height: none !important;
        padding: 20px !important;
        display: block !important;
    }
    
    .question-btn {
        background-color: #333 !important;
        color: white !important;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media screen and (max-width: 1200px) {
    .main-header h1 {
        font-size: 2.3em;
    }
    
    .nav-menu ul {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-width: 3px;
    }
    
    .main-header h1 {
        font-size: 1.8em;
    }
    
    .subtitle {
        font-size: 1.2em;
    }
    
    .content-section h2 {
        font-size: 1.7em;
    }
    
    .content-section h3 {
        font-size: 1.4em;
    }
    
    .nav-menu ul {
        grid-template-columns: 1fr;
    }
    
    .flow-box.split {
        grid-template-columns: 1fr;
    }
    
    .table-container {
        font-size: 0.9em;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 10px;
        font-size: 0.95em;
    }
}

@media screen and (max-width: 480px) {
    .main-header h1 {
        font-size: 1.5em;
    }
    
    .subtitle {
        font-size: 1em;
    }
    
    .print-btn {
        font-size: 1em;
        padding: 12px 25px;
    }
    
    .content-section {
        padding: 20px;
    }
    
    .content-section h2 {
        font-size: 1.5em;
    }
    
    .content-section h3 {
        font-size: 1.2em;
    }
    
    .question-btn {
        font-size: 1em;
        padding: 15px;
    }
}