﻿.case-details-container {
    font-family: Arial, sans-serif;
    color: #333;
    background-color: #fff;
    padding: 2rem 2.5rem;
    max-width: 1000px;
    margin: 2rem auto;
    line-height: 1.6;
}

/* Case Title */
.case-title {
    font-size: 1.8rem;
    color: #003366;
    font-weight: 700;
    border-bottom: 4px solid #1a5276;
    padding-bottom: 0.6rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* Section Block */
.case-section {
    border: 1px solid #d4d9df;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    overflow: hidden;
}

/* Section Header */
.section-header {
    background-color: #f2f6fb;
    color: #003366;
    font-weight: 700;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #cce0f5;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
}

/* Section Body */
.section-body {
    padding: 1.25rem 1.75rem;
}

/* Q&A Pair */
.qa-pair {
    margin-bottom: 1.5rem;
}

/* Question */
.question {
    font-weight: 700;
    color: #1a355e;
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.question-code {
    font-weight: 700;
    color: #002b5c;
    margin-right: 0.25rem;
}

/* Buttons styling */
.case-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

    .case-actions .btn {
        font-size: 0.95rem;
        padding: 0.55rem 1.1rem;
        border-radius: 4px;
        text-transform: uppercase;
    }

    .case-actions .btn-primary {
        background-color: #004b9b;
        border: none;
        color: #fff;
    }

    .case-actions .btn-secondary {
        background-color: #f2f6fb;
        border: 1px solid #cce0f5;
        color: #003366;
    }

    .case-actions .btn:hover {
        opacity: 0.9;
    }

/* Answers */
.answer {
    background-color: #f9fbfd;
    border-left: 4px solid #b6d7f0;
    padding: 0.75rem 1rem;
    color: #333;
    font-size: 0.96rem;
    border-radius: 3px;
    white-space: pre-wrap;
}

    .answer p {
        margin: 0.4rem 0;
    }

    .answer a {
        color: #0056b3;
        text-decoration: underline;
    }

        .answer a:hover {
            text-decoration: none;
        }

/* Spacing */
.case-section + .case-section {
    margin-top: 2rem;
}

.case-header-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #eaf3fc;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #cce0f5;
}

.left-buttons {
    display: flex;
    gap: 0.5rem;
}

.right-buttons {
    display: flex;
    justify-content: flex-end;
}

.tab-button {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    color: #003366;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

    .tab-button:hover {
        background-color: #e0e0e0;
    }

    .tab-button.active {
        background-color: #1a5276;
        color: #fff;
        border: 1px solid #1a5276;
    }

.return-btn {
    background-color: #6c757d;
    color: #fff;
    border: 1px solid #6c757d;
}

    .return-btn:hover {
        background-color: #5a6268;
    }

/* Fade container */
.fade-container {
    position: relative;
    min-height: 200px;
    transition: opacity 0.3s ease-in-out;
}

.fade-in {
    opacity: 1;
}

.fade-out {
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-6px);
    }
}

/* Optional shadow container */
.case-content-container {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease-in-out;
}

.institution-section {
    background: #fff;
    border-radius: 6px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    border: 1px solid #d9e1eb;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.section-title {
    background-color: #eaf3fc;
    color: #003366;
    font-weight: 700;
    padding: 0.8rem 1rem;
    border-left: 4px solid #1a5276;
    margin-bottom: 1.4rem;
    border-radius: 4px;
    text-transform: uppercase;
}

/* GRID → KEEP for UI (not PDF) */
.institution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.2rem 2rem;
}

.field-grid {
    display: flex;
    flex-direction: column;
}

.label-grid {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1a355e;
    margin-bottom: 0.25rem;
}

.value-grid {
    font-size: 0.95rem;
    color: #333;
    padding: 0.4rem 0.6rem;
    background: #f9fbfd;
    border-left: 3px solid #b6d7f0;
    border-radius: 4px;
    line-height: 1.5;
    word-break: break-word;
}

.invisible-div {
    visibility: hidden;
}
