/* Grade header styling */
.grade-header {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--sage-navy);
    margin: 30px 0 15px 0;
    padding: 10px 0;
    border-bottom: 2px solid var(--sage-navy);
    text-align: center;
}

/* Accordion-style resource sections */
/* Hide the fourth accordion section (Differentiation) */
.accordion-container > .accordion-section:nth-child(4) {
    display: none !important;
}

.accordion-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.accordion-section {
    border: 2px solid var(--sage-navy);
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.accordion-section:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.accordion-header {
    background-color: var(--sage-navy);
    color: white;
    padding: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.accordion-title-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-icon {
    font-size: 1.2rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-title {
    margin: 0;
    font-size: 1.1rem;
}

.accordion-subtitle {
    display: block;
    font-size: 0.85rem;
    font-weight: normal;
    opacity: 0.9;
    margin-top: 3px;
}

.accordion-toggle {
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow-y: auto;
    transition: max-height 0.5s ease;
    padding: 0 15px;
}

.accordion-content-inner {
    padding: 15px 0;
    max-height: 400px; /* Set a maximum height */
    overflow-y: auto; /* Enable vertical scrolling */
}

.accordion-section.active .accordion-toggle {
    transform: rotate(180deg);
}

.accordion-section.active .accordion-content {
    max-height: 450px; /* Slightly larger than content-inner to accommodate padding */
}

/* Download link styles */
.download-link {
    display: inline-block;
    color: var(--sage-navy);
    text-decoration: none;
    margin-top: 0.5rem;
    font-weight: bold;
}

.download-link:hover {
    text-decoration: underline;
}
