﻿.collapsible-container {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    overflow: hidden; /* Important for transition */
}

.collapsible-header {
    background-color: #007bff;
    color: white;
    padding: 12px 15px;
    padding-top: 20px;
    padding:bottom: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    border-bottom: 1px solid #0056b3;
}

    .collapsible-header:hover {
        background-color: #0056b3;
    }

.toggle-icon {
    font-size: 1.2em;
    min-width: 1em; /* Ensure consistent width */
    text-align: center;
    transition: transform 0.3s ease; /* Smooth rotation for the icon if we were to rotate it */
}

.collapsible-content {
    padding: 0 15px;
    max-height: 0; /* Initially hidden */
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out; /* Smooth transition for height and padding */
    background-color: white;
}

    .collapsible-content p {
        margin: 10px 0;
    }

    /* Class added by JavaScript when content is active */
    .collapsible-content.active {
        max-height: 4000px;  /*Adjust this value based on your expected content height */
        padding: 10px 15px; /* Restore padding when active */
    }

/* Icon change when content is active */
.collapsible-header.active .toggle-icon {
    content: '-'; /* This won't work directly on a span. We'll handle this in JS */
}
