﻿/* --- DISCLOSURE PAGE CREATIVE UI --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* --- General Setup --- */
.disclosure-page {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7f9;
    color: #444;
    padding: 100px 80px;
}

.disclosure-header {
    text-align: center;
    margin-bottom: 5vh;
}

    .disclosure-header h1 {
        font-size: clamp(2rem, 5vw, 3.5rem);
        color: #011b45;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .disclosure-header p {
        font-size: 1rem;
        color: #667;
    }

/* --- Accordion Styling (<details> & <summary>) --- */
.disclosure-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background-color: #ffffff;
    border: 1px solid #e0e5eb;
    border-radius: 12px;
    transition: box-shadow 0.3s ease;
}

    .accordion-item:hover {
        box-shadow: 0 10px 30px rgba(0, 30, 80, 0.08);
    }

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    cursor: pointer;
    list-style: none; /* Hide default marker */
}

    .accordion-header::-webkit-details-marker {
        display: none; /* Hide default marker for Safari */
    }

    .accordion-header h2 {
        font-size: 1.25rem;
        font-weight: 600;
        color: #011b45;
    }

    .accordion-header .icon {
        width: 12px;
        height: 12px;
        border-right: 2px solid #011b45;
        border-bottom: 2px solid #011b45;
        transform: rotate(45deg);
        transition: transform 0.3s ease-in-out;
    }

.accordion-item[open] > .accordion-header .icon {
    transform: rotate(225deg);
}

.accordion-content {
    padding: 0 2rem 2rem 2rem;
    overflow: hidden;
}

/* --- Content Styling Inside Accordion --- */
/* Key-Value List Styling */
.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

    .info-list li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        background-color: #f9fafb;
        border-radius: 8px;
        border: 1px solid #e0e5eb;
        flex-wrap: wrap; /* For responsiveness */
    }

        .info-list li span:first-child {
            font-weight: 600;
            color: #334;
            padding-right: 1rem;
        }

        .info-list li span:last-child {
            text-align: right;
            color: #556;
        }

/* Document List Styling */
.doc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .doc-list li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
        border-bottom: 1px dashed #e0e5eb;
        flex-wrap: wrap;
    }

        .doc-list li:last-child {
            border-bottom: none;
        }

.doc-button {
    background-color: #011b45;
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

    .doc-button:hover {
        background-color: #38bdf8;
    }

    .doc-button i {
        margin-left: 0.5rem;
    }

/* --- Restyled Tables for Results --- */
.result-tables {
    margin-top: 2rem;
}

    .result-tables h4 {
        font-size: 1.1rem;
        color: #011b45;
        font-weight: 600;
        margin-bottom: 1rem;
        border-bottom: 2px solid #e0e5eb;
        padding-bottom: 0.5rem;
    }

.table-wrapper {
    overflow-x: auto; /* Enable horizontal scroll on small screens */
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

    table th, table td {
        padding: 0.8rem 1rem;
        text-align: left;
        border: none;
    }

    table th {
        background-color: #eef2f6;
        font-weight: 600;
        color: #011b45;
        font-size: 0.9rem;
        text-transform: uppercase;
    }

    table tbody tr:nth-child(even) {
        background-color: #f9fafb;
    }

    table tbody tr:hover {
        background-color: #e0f2fe;
    }

    table td {
        font-size: 0.95rem;
    }

/* --- Footer Note --- */
.disclosure-footer {
    text-align: center;
    margin-top: 5vh;
    font-size: 0.9rem;
    color: #778;
    background-color: #eef2f6;
    padding: 1.5rem;
    border-radius: 8px;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .info-list li, .doc-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

        .info-list li span:last-child {
            text-align: left;
        }
}

/* --- RESPONSIVE ENHANCEMENTS (Non-destructive) --- */

/* Tablet screens */
@media (max-width: 1024px) {
    .disclosure-page {
        padding: 80px 40px;
        margin-top: 4rem;
    }

    .accordion-header {
        padding: 1.25rem 1.5rem;
    }

        .accordion-header h2 {
            font-size: 1.1rem;
        }

    .accordion-content {
        padding: 0 1.5rem 1.5rem;
    }

    .info-list li,
    .doc-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

        .info-list li span:last-child,
        .doc-list li a {
            text-align: left;
        }

    table th, table td {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
}

/* Mobile screens */
@media (max-width: 768px) {
    .disclosure-page {
        padding: 60px 25px;
    }

    .disclosure-header h1 {
        font-size: 1.8rem;
    }

    .disclosure-header p {
        font-size: 0.9rem;
    }

    .accordion-header {
        padding: 1rem 1.2rem;
    }

        .accordion-header h2 {
            font-size: 1rem;
        }

    .accordion-item {
        border-radius: 10px;
    }

    .info-list li,
    .doc-list li {
        padding: 0.8rem;
        flex-direction: column;
        align-items: flex-start;
    }

        .info-list li span:first-child {
            font-size: 0.95rem;
        }

        .info-list li span:last-child {
            font-size: 0.9rem;
            color: #555;
        }

    .doc-button {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    table {
        font-size: 0.9rem;
    }

    .table-wrapper {
        border-radius: 8px;
        overflow-x: auto;
    }

    .result-tables h4 {
        font-size: 1rem;
    }

    .disclosure-footer {
        font-size: 0.85rem;
        padding: 1rem;
        line-height: 1.4;
    }
}

/* Small mobile (under 480px) */
@media (max-width: 480px) {
    .disclosure-page {
        padding: 40px 15px;
    }

    .disclosure-header h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .accordion-header h2 {
        font-size: 0.95rem;
    }

    .doc-button {
        font-size: 0.8rem;
    }

    table th, table td {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
}

