/* ===== GOLDEN RULE PROJECT STYLESHEET ===== */
/* Colors: Background RGB(101, 201, 10), Border RGB(206, 230, 168) */

/* ===== RESET AND BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background-color: rgb(101, 201, 10);
    color: #000000;
    line-height: 1.8;
    font-weight: bold;
    padding: 20px;
}

/* ===== PRINT BUTTON ===== */
.print-button-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.print-btn {
    background-color: rgb(206, 230, 168);
    color: #000000;
    border: 3px solid #000000;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.print-btn:hover {
    background-color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* ===== NAVIGATION PANEL ===== */
.navigation-panel {
    position: fixed;
    left: 20px;
    top: 100px;
    width: 280px;
    background-color: rgb(206, 230, 168);
    border: 4px solid #000000;
    border-radius: 10px;
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.navigation-panel h3 {
    font-weight: bold;
    font-size: 20px;
    color: #000000;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 3px solid #000000;
    padding-bottom: 10px;
}

.navigation-panel ul {
    list-style: none;
}

.navigation-panel li {
    margin-bottom: 10px;
}

.navigation-panel button {
    width: 100%;
    background-color: rgb(101, 201, 10);
    color: #000000;
    border: 2px solid #000000;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    text-align: left;
    transition: all 0.3s ease;
}

.navigation-panel button:hover {
    background-color: #ffffff;
    transform: translateX(5px);
}

/* ===== MAIN CONTAINER ===== */
.container {
    max-width: 900px;
    margin: 0 auto 0 320px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 6px solid rgb(206, 230, 168);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* ===== SECTIONS ===== */
.section {
    margin-bottom: 50px;
    padding: 30px;
    background-color: #ffffff;
    border: 4px solid rgb(206, 230, 168);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.section-heading {
    font-size: 28px;
    font-weight: bold;
    color: #000000;
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
    background-color: rgb(206, 230, 168);
    border: 3px solid #000000;
    border-radius: 8px;
    text-transform: uppercase;
}

.sub-heading {
    font-size: 22px;
    font-weight: bold;
    color: #000000;
    margin-top: 25px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgb(206, 230, 168);
    border-left: 6px solid #000000;
    border-radius: 5px;
}

.sub-sub-heading {
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    margin-top: 20px;
    margin-bottom: 12px;
    padding: 8px;
    background-color: rgba(206, 230, 168, 0.5);
    border-left: 4px solid #000000;
}

/* ===== CONTENT BOXES ===== */
.content-box {
    background-color: #ffffff;
    padding: 20px;
    border: 3px solid rgb(206, 230, 168);
    border-radius: 8px;
    margin-bottom: 20px;
}

.content-box p {
    font-weight: bold;
    color: #000000;
    margin-bottom: 15px;
    text-align: justify;
    line-height: 1.9;
}

.content-box ul {
    margin-left: 30px;
    margin-bottom: 15px;
}

.content-box ul li {
    font-weight: bold;
    color: #000000;
    margin-bottom: 10px;
    line-height: 1.8;
}

.sub-content {
    margin-left: 20px;
    padding: 15px;
    background-color: rgba(206, 230, 168, 0.3);
    border-left: 4px solid rgb(101, 201, 10);
    border-radius: 5px;
    margin-bottom: 20px;
}

/* ===== COVER PAGE ===== */
.cover-content {
    text-align: center;
    padding: 40px;
}

.college-name {
    font-size: 36px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.college-location {
    font-size: 24px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 40px;
}

.project-title-box {
    background-color: rgb(206, 230, 168);
    border: 5px solid #000000;
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
}

.project-title {
    font-size: 28px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 20px;
}

.topic-title {
    font-size: 32px;
    font-weight: bold;
    color: #000000;
    text-transform: uppercase;
}

.submission-details {
    text-align: left;
    padding: 30px;
    background-color: rgba(206, 230, 168, 0.5);
    border: 3px solid #000000;
    border-radius: 10px;
    margin: 30px 0;
}

.submission-details h3 {
    font-size: 22px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 15px;
    text-align: center;
}

.submitted-to {
    margin-top: 25px;
}

.submission-details p {
    font-size: 16px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 10px;
}

.submission-date {
    margin-top: 25px;
    text-align: center;
    font-size: 18px;
}

.signature-line {
    margin-top: 30px;
    text-align: right;
}

.disclaimer {
    margin-top: 40px;
    padding: 20px;
    background-color: rgb(206, 230, 168);
    border: 3px solid #000000;
    border-radius: 8px;
}

.disclaimer p {
    font-weight: bold;
    color: #000000;
    font-size: 14px;
    font-style: italic;
}

/* ===== TABLES ===== */
.toc-table,
.abbreviation-table,
.data-table,
.case-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #ffffff;
    border: 3px solid rgb(206, 230, 168);
}

.toc-table thead,
.abbreviation-table thead,
.data-table thead {
    background-color: rgb(206, 230, 168);
}

.toc-table th,
.abbreviation-table th,
.data-table th,
.case-table th {
    padding: 15px;
    text-align: left;
    font-weight: bold;
    color: #000000;
    border: 2px solid #000000;
    font-size: 16px;
}

.toc-table td,
.abbreviation-table td,
.data-table td,
.case-table td {
    padding: 12px;
    border: 2px solid rgb(206, 230, 168);
    font-weight: bold;
    color: #000000;
}

.toc-table tr:nth-child(even),
.abbreviation-table tr:nth-child(even),
.data-table tr:nth-child(even) {
    background-color: rgba(206, 230, 168, 0.3);
}

.toc-table button {
    background-color: transparent;
    border: none;
    color: #000000;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
    text-decoration: underline;
    padding: 0;
    font-size: 14px;
}

.toc-table button:hover {
    color: rgb(101, 201, 10);
}

.case-table {
    margin-top: 15px;
}

.case-table th {
    background-color: rgb(206, 230, 168);
    width: 30%;
}

.case-table td {
    width: 70%;
}

/* ===== CASE BOXES ===== */
.case-box {
    background-color: rgba(206, 230, 168, 0.2);
    border: 3px solid rgb(206, 230, 168);
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.case-heading {
    font-size: 20px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 15px;
    padding: 10px;
    background-color: rgb(206, 230, 168);
    border: 2px solid #000000;
    border-radius: 5px;
}

/* ===== FLOWCHARTS ===== */
.flowchart-container {
    background-color: rgba(206, 230, 168, 0.2);
    border: 3px solid rgb(206, 230, 168);
    border-radius: 10px;
    padding: 30px;
    margin: 25px 0;
}

.flowchart-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.flowchart-step {
    background-color: rgb(206, 230, 168);
    border: 3px solid #000000;
    border-radius: 8px;
    padding: 15px 25px;
    font-weight: bold;
    color: #000000;
    text-align: center;
    min-width: 300px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.start-step {
    background-color: rgb(101, 201, 10);
    color: #000000;
}

.end-step {
    background-color: #ffffff;
    border: 4px solid rgb(101, 201, 10);
}

.flowchart-decision {
    background-color: #ffffff;
    border: 3px solid #000000;
    border-radius: 50%;
    padding: 20px;
    font-weight: bold;
    color: #000000;
    text-align: center;
    min-width: 250px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.flowchart-arrow {
    font-size: 30px;
    font-weight: bold;
    color: #000000;
    margin: 5px 0;
}

.flowchart-split {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 20px;
}

.flowchart-branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.flowchart-arrow-left,
.flowchart-arrow-right {
    font-size: 24px;
    font-weight: bold;
    color: #000000;
    margin: 10px 0;
}

/* ===== COMPARISON FLOWCHART ===== */
.comparison-flowchart {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.rule-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.rule-header {
    padding: 15px;
    border: 3px solid #000000;
    border-radius: 8px;
    font-weight: bold;
    color: #000000;
    text-align: center;
    width: 100%;
    font-size: 16px;
}

.literal-rule {
    background-color: #ffcccc;
}

.golden-rule {
    background-color: #ffffcc;
}

.mischief-rule {
    background-color: #ccffcc;
}

.rule-step {
    background-color: rgb(206, 230, 168);
    border: 2px solid #000000;
    border-radius: 6px;
    padding: 12px;
    font-weight: bold;
    color: #000000;
    text-align: center;
    width: 100%;
    font-size: 13px;
}

.rule-arrow {
    font-size: 24px;
    font-weight: bold;
    color: #000000;
}

.rule-result {
    background-color: rgb(101, 201, 10);
    border: 3px solid #000000;
    border-radius: 6px;
    padding: 12px;
    font-weight: bold;
    color: #000000;
    text-align: center;
    width: 100%;
    font-size: 14px;
}

/* ===== EXAMPLE BOXES ===== */
.example-box {
    background-color: rgba(206, 230, 168, 0.3);
    border: 3px solid rgb(101, 201, 10);
    border-left: 8px solid rgb(101, 201, 10);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.example-box p {
    font-weight: bold;
    color: #000000;
    margin-bottom: 12px;
    line-height: 1.8;
}

/* ===== PROCESS BOX ===== */
.process-box {
    background-color: rgba(206, 230, 168, 0.2);
    border: 3px solid rgb(206, 230, 168);
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
}

.process-box p {
    font-weight: bold;
    color: #000000;
    margin-bottom: 12px;
    line-height: 1.8;
}

/* ===== RELATIONSHIP BOX ===== */
.relationship-box {
    background-color: rgba(206, 230, 168, 0.2);
    border: 3px solid rgb(206, 230, 168);
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
}

.relationship-box p {
    font-weight: bold;
    color: #000000;
    margin-bottom: 12px;
    line-height: 1.8;
}

/* ===== QUESTION AND ANSWER SECTION ===== */
.qa-section {
    margin: 25px 0;
    border: 3px solid rgb(206, 230, 168);
    border-radius: 10px;
    overflow: hidden;
}

.question-btn {
    width: 100%;
    background-color: rgb(206, 230, 168);
    color: #000000;
    border: none;
    padding: 18px 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.question-btn:hover {
    background-color: rgb(101, 201, 10);
    transform: scale(1.02);
}

.answer-content {
    display: none;
    background-color: #ffffff;
    padding: 20px 25px;
    border-top: 3px solid rgb(206, 230, 168);
}

.answer-content.show {
    display: block;
}

.answer-content p {
    font-weight: bold;
    color: #000000;
    line-height: 1.9;
    text-align: justify;
}

/* ===== CONCLUSION BOXES ===== */
.conclusion-points {
    margin: 20px 0;
}

.conclusion-points p {
    font-weight: bold;
    color: #000000;
    margin-bottom: 15px;
    line-height: 1.9;
    text-align: justify;
}

.disclaimer-box {
    background-color: rgb(206, 230, 168);
    border: 3px solid #000000;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
    text-align: center;
}

.disclaimer-box p {
    font-weight: bold;
    color: #000000;
    font-style: italic;
}

/* ===== REFERENCES ===== */
.reference-list {
    margin-left: 30px;
    margin-bottom: 25px;
}

.reference-list li {
    font-weight: bold;
    color: #000000;
    margin-bottom: 12px;
    line-height: 1.8;
}

/* ===== FOOTER ===== */
.footer {
    background-color: rgb(206, 230, 168);
    border: 4px solid #000000;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    margin-top: 40px;
}

.footer p {
    font-weight: bold;
    color: #000000;
    margin-bottom: 8px;
}

/* ===== PRINT STYLES ===== */
@media print {
    body {
        background-color: #ffffff;
        padding: 0;
    }

    .print-button-container,
    .navigation-panel {
        display: none !important;
    }

    .container {
        margin: 0;
        border: none;
        box-shadow: none;
        max-width: 100%;
    }

    .section {
        page-break-inside: avoid;
        border: 2px solid #000000;
        margin-bottom: 30px;
    }

    .section-heading {
        page-break-after: avoid;
    }

    .case-box {
        page-break-inside: avoid;
    }

    .flowchart-container {
        page-break-inside: avoid;
    }

    .qa-section {
        page-break-inside: avoid;
    }

    .answer-content {
        display: block !important;
    }

    button {
        border: none;
        background: none;
        text-decoration: underline;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 1200px) {
    .navigation-panel {
        position: static;
        width: 100%;
        margin-bottom: 30px;
    }

    .container {
        margin: 0 auto;
    }

    .comparison-flowchart {
        flex-direction: column;
    }

    .rule-column {
        width: 100%;
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }

    .container {
        padding: 20px;
    }

    .section {
        padding: 15px;
    }

    .section-heading {
        font-size: 22px;
    }

    .sub-heading {
        font-size: 18px;
    }

    .flowchart-step {
        min-width: 200px;
        font-size: 13px;
    }

    .flowchart-decision {
        min-width: 180px;
        min-height: 180px;
        font-size: 13px;
    }

    .print-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background-color: rgb(206, 230, 168);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: rgb(101, 201, 10);
    border-radius: 10px;
    border: 2px solid rgb(206, 230, 168);
}

::-webkit-scrollbar-thumb:hover {
    background-color: #000000;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    animation: fadeIn 0.5s ease-in-out;
}

/* ===== ACCESSIBILITY ===== */
button:focus,
a:focus {
    outline: 3px solid rgb(101, 201, 10);
    outline-offset: 2px;
}

/* ===== END OF STYLESHEET ===== */