/* Kutby edu-aggregate.css — from grade-first-primary-term-1-solutions.html */

.edu-grade-box-links {
    background: #fafbfc;
    border: 1px solid #e8ecf1;
    padding: 14px 16px 16px;
}

.edu-grade-box-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
    padding-top: 6px;
}

.edu-grade-box-cell {
    min-width: 0;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    padding: 8px 8px 7px;
}

.edu-grade-box-term-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edu-grade-box-term-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 6px;
    border-radius: 7px;
    text-decoration: none;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    transition: background .12s ease, color .12s ease;
}

.edu-grade-box-term-link:hover {
    background: #f8fafc;
    color: #2563eb;
}

.edu-grade-box-term-link.is-current {
    background: #eff6ff;
    color: #1d4ed8;
}

.edu-grade-box-term-link.is-empty {
    opacity: .45;
    cursor: default;
}

.edu-grade-box-term-chevron {
    flex-shrink: 0;
    display: inline-flex;
    color: #64748b;
}

.edu-grade-box-term-text {
    flex: 1;
    min-width: 0;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.edu-grade-box-grade {
    font-weight: 700;
    color: #334155;
}

.edu-grade-box-sep {
    margin: 0 3px;
    color: #64748b;
}

.edu-grade-box-term-count {
    flex-shrink: 0;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.edu-grade-box-term-link.is-current .edu-grade-box-term-count {
    background: rgba(37, 99, 235, .12);
    color: #1d4ed8;
}

@media (max-width: 900px) {
    .edu-grade-box-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .edu-grade-box-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.edu-curriculum-stage-links-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.edu-curriculum-stage-block {
    padding: 14px 0 0;
    border-top: 1px solid #f1f5f9;
}

.edu-curriculum-stage-block:first-child {
    padding-top: 0;
    border-top: none;
}

.edu-curriculum-stage-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}

.edu-curriculum-stage-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.edu-curriculum-stage-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e8eaed;
    color: #334155;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;
    transition: background .12s ease, border-color .12s ease, color .12s ease;
}

.edu-curriculum-stage-link:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}

.edu-curriculum-stage-link.is-current {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.edu-curriculum-stage-link-label {
    flex: 1;
    min-width: 0;
}

.edu-curriculum-stage-link-count {
    flex-shrink: 0;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

.edu-curriculum-stage-link.is-current .edu-curriculum-stage-link-count {
    background: rgba(37, 99, 235, .14);
    color: #1d4ed8;
}

@media (max-width: 1024px) {
    .edu-curriculum-stage-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .edu-curriculum-stage-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .edu-curriculum-stage-grid {
        grid-template-columns: 1fr;
    }
}

.edu-filter-file-card-body {
    align-items: flex-start;
    text-align: right;
    padding: 10px 10px 12px;
    gap: 8px;
}
.edu-filter-file-card-title {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
    min-height: 0;
}
.edu-filter-file-meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}
.edu-filter-file-meta li {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.4;
}

.edu-content-type-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: stretch;
}

.edu-content-type-grid--compact .edu-content-type-card {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
}

.edu-content-type-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 10px;
    text-decoration: none;
    background: color-mix(in srgb, var(--type-color) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--type-color) 28%, #e8eaed);
    color: var(--type-color);
    transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;
    white-space: nowrap;
}

.edu-content-type-card:hover {
    background: color-mix(in srgb, var(--type-color) 16%, #fff);
    border-color: color-mix(in srgb, var(--type-color) 42%, #e8eaed);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--type-color) 12%, transparent);
}

.edu-content-type-card.is-active {
    background: color-mix(in srgb, var(--type-color) 18%, #fff);
    border-color: color-mix(in srgb, var(--type-color) 55%, #e8eaed);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--type-color) 20%, transparent);
}

.edu-content-type-card-icon {
    flex-shrink: 0;
    font-size: 15px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.edu-content-type-card-icon svg {
    width: 15px;
    height: 15px;
}

.edu-content-type-card-label {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.edu-content-type-card-count {
    flex-shrink: 0;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--type-color) 14%, #fff);
    color: var(--type-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
}

@media (max-width: 480px) {
    .edu-content-type-grid--compact .edu-content-type-card {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
        white-space: normal;
    }
}

.edu-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edu-faq-item {
    border: 1px solid #e8eaed;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.edu-faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: right;
    font-family: inherit;
    direction: rtl;
}

.edu-faq-trigger:hover {
    background: #f8fafc;
}

.edu-faq-question {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.5;
    flex: 1;
}

.edu-faq-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #eff6ff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    transition: transform .15s ease;
}

.edu-faq-item.is-open .edu-faq-icon {
    transform: rotate(45deg);
}

.edu-faq-answer {
    display: none;
    padding: 0 16px 14px;
    border-top: 1px solid #f1f5f9;
}

.edu-faq-item.is-open .edu-faq-answer {
    display: block;
}

.edu-faq-answer-inner {
    padding-top: 12px;
    font-size: 13px;
    line-height: 1.75;
    color: #475569;
}

.edu-faq-answer-inner p {
    margin: 0 0 10px;
}

.edu-faq-more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.edu-faq-more-link:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .edu-subject-hero.home-panel {
        padding: 10px 12px;
    }

    .edu-subject-hero .edu-page-title {
        font-size: 13px;
        font-weight: 700;
        line-height: 1.4;
        margin: 0 0 6px;
    }

    .edu-subject-hero .edu-subject-hero-desc,
    .edu-subject-hero .edu-page-desc {
        font-size: 11px;
        line-height: 1.5;
    }
}

