﻿/* Kutby site page CSS — search (split from site-pages.css) */
/* Do not edit site-pages.css for page styles; edit this file. */

/* ---- search ---- */

.home-panel {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8eaed;
    padding: 16px 16px 14px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
    width: 100%;
}

.home-cards-grid {
    display: grid;
    gap: 12px;
}

.home-cards-grid.cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.home-cards-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-cards-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-cards-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-cards-grid > * {
    min-width: 0;
}

.home-cards-grid .phv2-item,
.home-cards-grid > a {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.home-cards-grid .phv2-item > a,
.home-cards-grid > a {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-cards-grid .phv2-card {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px) {
    .home-cards-grid.cols-5 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .home-cards-grid.cols-3,
    .home-cards-grid.cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-cards-grid.cols-5,
    .home-cards-grid.cols-3,
    .home-cards-grid.cols-4,
    .home-cards-grid.cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}



.edu-home-page,
.blog-page {
    font-family: 'Tajawal', 'Inter', system-ui, sans-serif;
}

.edu-home-page .edu-page-title,
.blog-page .blog-hero-title,
.blog-page .blog-article-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
    line-height: 1.4;
}

.blog-page .blog-hero-title {
    font-size: 28px;
}

.blog-page .blog-article-title {
    font-size: clamp(18px, 3vw, 22px);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-page .blog-article-lead {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.75;
}

.blog-page .blog-article-body {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.8;
    color: #475569;
}

.blog-page .blog-article-body h2 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.45;
}

.blog-page .blog-article-body h3 {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.45;
}

.blog-page .blog-article-body h4 {
    font-size: 14px;
    font-weight: 700;
    color: #334155;
    line-height: 1.45;
}

.blog-page .blog-article-body h5 {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.5;
}

.edu-home-page .edu-page-kicker {
    font-size: 11px;
    font-weight: 600;
    color: #2563eb;
    margin: 0 0 6px;
    line-height: 1.3;
}

.edu-home-page .edu-page-desc,
.blog-page .blog-hero-desc {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin: 0;
    line-height: 1.7;
}

.blog-page .blog-hero-desc {
    font-size: 15px;
    color: #475569;
    margin-bottom: 16px;
}

.edu-home-page .edu-section-title,
.blog-page .blog-feed-title h2,
.blog-page .blog-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.edu-home-page .edu-section-link,
.blog-page .blog-feed-count {
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.edu-home-page .edu-empty-text {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    margin: 0;
    text-align: center;
    padding: 24px 0;
}

.blog-page .blog-breadcrumb {
    font-weight: 500;
}

@media (max-width: 640px) {
    .blog-page .blog-hero-title {
        font-size: 22px;
    }

    .blog-page .blog-hero-desc {
        font-size: 13px;
    }
}



.edu-subject-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.edu-subject-hero-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    direction: rtl;
}

.edu-subject-hero-text {
    flex: 1;
    min-width: 0;
}

.edu-subject-hero-desc {
    margin-bottom: 0;
}

.edu-subject-hero-cover {
    flex-shrink: 0;
    width: 88px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8eaed;
    background: #f8fafc;
    line-height: 0;
}

.edu-subject-hero-cover-img {
    width: 100%;
    height: auto;
    display: block;
}

.edu-subject-type-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
}

.edu-subject-type-filter {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease, color .12s ease;
}

.edu-subject-type-filter:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}

.edu-subject-type-filter.is-active {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}

.edu-subject-files-empty {
    margin: 12px 0 0;
    text-align: center;
}

.edu-subject-files-grid {
    gap: 12px;
}

.edu-subject-files-grid .edu-file-grid-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: #fff !important;
    border: 1px solid #eef1f5 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04) !important;
}

.edu-subject-files-grid .edu-file-grid-card:hover {
    border-color: #dbeafe !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06) !important;
}

.edu-file-grid-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f8fafc;
    overflow: hidden;
    line-height: 0;
}

.edu-file-grid-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    background: #f8fafc;
}

.edu-file-grid-ribbon {
    position: absolute;
    top: 12px;
    left: -34px;
    width: 118px;
    transform: rotate(-45deg);
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    padding: 6px 0;
    line-height: 1.3;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .14);
    pointer-events: none;
    letter-spacing: .01em;
}

.edu-file-grid-ribbon--solution {
    background: #16a34a;
}

.edu-file-grid-ribbon--book {
    background: #dc2626;
}

.edu-file-grid-ribbon--test {
    background: #d97706;
}

.edu-file-grid-ribbon--worksheet {
    background: #2563eb;
}

.edu-file-grid-ribbon--summary {
    background: #7c3aed;
}

.edu-file-grid-title {
    margin: 0;
    padding: 9px 8px 11px;
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    line-height: 1.45;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .edu-file-grid-title {
        font-size: 11px;
        padding: 7px 6px 9px;
    }
}

.edu-file-card {
    background: #f8fafc !important;
    overflow: hidden;
}

.edu-file-card-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.edu-file-card-cover {
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    line-height: 0;
    overflow: hidden;
}

.edu-file-card-img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
    background: #f1f5f9;
}

.edu-file-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    direction: rtl;
}

.edu-file-card-type {
    display: inline-block;
    align-self: flex-start;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
    background: #eff6ff;
    color: #2563eb;
}

.edu-file-card-title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.edu-file-card-meta {
    margin: 0;
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.45;
}

.edu-file-card-bottom {
    margin-top: auto;
    padding-top: 4px;
}

.edu-file-card-btn {
    width: 100% !important;
    padding: 7px 12px !important;
    font-size: 12px !important;
    background: #fff !important;
    border: 1px solid #e2e8f0;
}

.edu-file-card-btn:hover {
    background: #f0f4ff !important;
    border-color: #bfdbfe;
}

.edu-subject-questions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.edu-subject-question-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 12px 11px;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    background: #f8fafc;
    text-decoration: none;
    color: inherit;
    direction: rtl;
    min-height: 100%;
    transition: border-color .12s ease, background-color .12s ease;
}

.edu-subject-question-card:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.edu-subject-question-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
}

.edu-subject-question-title {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.edu-subject-question-card:hover .edu-subject-question-title {
    color: #2563eb;
}

@media (max-width: 900px) {
    .edu-subject-hero-inner {
        flex-direction: column;
    }

    .edu-subject-hero-cover {
        width: 72px;
    }

    .edu-subject-questions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .edu-subject-hero.home-panel {
        padding: 12px 14px 11px;
    }

    .edu-subject-hero-inner {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .edu-subject-hero-text {
        flex: 1;
        min-width: 0;
    }

    .edu-subject-hero-cover {
        width: 52px;
        flex-shrink: 0;
        border-radius: 10px;
    }

    .edu-subject-page .edu-page-kicker {
        font-size: 10px;
        font-weight: 600;
        margin: 0 0 3px;
        line-height: 1.35;
    }

    .edu-subject-page .edu-page-title {
        font-size: 15px;
        font-weight: 700;
        margin: 0 0 4px;
        line-height: 1.35;
    }

    .edu-subject-hero-desc {
        font-size: 11px;
        font-weight: 500;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .edu-subject-questions-grid {
        grid-template-columns: 1fr;
    }

    .edu-subject-questions-grid .edu-subject-question-card:nth-child(n+5) {
        display: none;
    }

    .edu-subject-question-card {
        padding: 10px 11px 9px;
    }

    .edu-subject-question-title {
        font-size: 12px;
    }

    .edu-subject-page .edu-term-explore {
        padding: 10px 12px;
        gap: 8px;
    }

    .edu-subject-page .edu-term-explore-label {
        font-size: 11px;
    }

    .edu-subject-page .edu-related-pill {
        font-size: 10px;
        font-weight: 600;
        padding: 5px 10px;
        line-height: 1.35;
    }
}



.edu-term-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.edu-term-list-hero.home-panel {
    padding: 12px 16px;
}

.edu-term-list-hero .edu-page-kicker {
    margin: 0 0 4px;
    font-size: 11px;
    line-height: 1.35;
}

.edu-term-list-hero .edu-page-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    line-height: 1.45;
}

.edu-term-hero-desc {
    margin-bottom: 0;
}

/* Term-page stats panel (not the grade-page term cards). */
.home-panel.edu-term-stats {
    padding: 12px 14px;
}

.edu-term-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.edu-term-stats-grid > .edu-term-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
    padding: 10px 8px;
    background: #f8fafc;
    border: 1px solid #e8eaed;
    border-radius: 10px;
}

.edu-term-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.edu-term-stat-label {
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1.4;
}

.edu-term-subjects-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 6px;
    align-items: start;
}

.edu-term-subjects-grid.home-cards-grid > a,
.edu-term-subjects-grid.home-cards-grid > a.subject-card {
    height: auto !important;
    flex: none !important;
    align-self: start;
}

.edu-term-subjects-grid .phv2-card.subject-card {
    flex: none !important;
    height: auto !important;
}

.edu-term-subjects-grid > a.subject-card {
    height: auto;
    flex: none;
    flex-direction: column;
}

.edu-term-subjects-grid .subject-card {
    min-height: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    direction: rtl;
    background: #fff !important;
    overflow: hidden;
    border-radius: 0 0 12px 12px !important;
}

.edu-term-subjects-grid .subject-card .subject-image,
.edu-term-subjects-grid .subject-card .subject-image-box {
    border-radius: 0 !important;
}

.edu-term-subjects-grid .subject-image-box {
    width: 100%;
    height: 118px;
    flex: none;
    background: #f8fafc;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 0;
    padding: 0;
    overflow: hidden;
    display: grid;
    place-items: stretch;
    line-height: 0;
    position: relative;
}

.edu-term-subjects-grid .subject-card-ribbon {
    position: absolute;
    top: 12px;
    left: -34px;
    width: 118px;
    transform: rotate(-45deg);
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    padding: 6px 0;
    line-height: 1.3;
    z-index: 2;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .14);
    pointer-events: none;
    letter-spacing: .01em;
}

.edu-term-subjects-grid .subject-card-ribbon--solution {
    background: #16a34a;
}

.edu-term-subjects-grid .subject-card-ribbon--book {
    background: #dc2626;
}

.edu-term-subjects-grid .subject-card-ribbon--test {
    background: #d97706;
}

.edu-term-subjects-grid .subject-card-ribbon--worksheet {
    background: #2563eb;
}

.edu-term-subjects-grid .subject-card-ribbon--summary {
    background: #7c3aed;
}

.edu-term-subjects-grid .subject-card-ribbon--default {
    background: #475569;
}

.edu-term-subjects-grid .subject-image {
    grid-area: 1 / 1;
    width: 100%;
    height: 118px;
    display: block;
    object-fit: cover;
    object-position: center top;
    border-radius: 0;
}

.edu-term-subjects-grid--full-image {
    align-items: stretch;
}

.edu-term-subjects-grid--full-image.home-cards-grid > a,
.edu-term-subjects-grid--full-image.home-cards-grid > a.subject-card,
.edu-term-subjects-grid--full-image .phv2-card.subject-card {
    height: 100% !important;
    align-self: stretch;
}

.edu-term-subjects-grid--full-image .subject-image-box {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    padding: 0;
    display: grid;
    place-items: center;
    background: #fff;
    line-height: 0;
}

.edu-term-subjects-grid--full-image .subject-image {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

.edu-term-subjects-grid--full-image .subject-image-fallback {
    height: 100%;
    width: 100%;
}

.edu-term-subjects-grid--full-image .subject-name {
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edu-term-subjects-grid .subject-image-fallback {
    grid-area: 1 / 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 118px;
    margin: 0;
    border-radius: 0;
    background: var(--subject-bg, #eff6ff);
    color: var(--subject-color, #2563eb);
}

.edu-term-subjects-grid .subject-image-fallback[hidden] {
    display: none !important;
}

.edu-term-subjects-grid .subject-name {
    margin: 0;
    padding: 6px 5px 7px;
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.35;
    text-align: center;
    flex: none;
}

.edu-subject-content-groups .edu-content-group-box {
    border: 1px solid #e8eaed;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
}

.edu-subject-content-groups .edu-content-group-box .edu-ktby-subjects-grid {
    padding: 0;
}

.edu-subject-type-group + .edu-subject-type-group {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #eef1f5;
}

.edu-subject-type-group-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #475569;
    text-align: right;
}

.edu-content-group-top,
.edu-content-group-files {
    margin: 0;
}

.edu-content-group-divider {
    height: 1px;
    margin: 12px 0;
    background: #eef1f5;
}

.edu-content-group-loose-label {
    margin: 0;
    padding: 2px 4px 0;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    text-align: right;
}

.edu-content-group-files {
    margin: 0;
}

.edu-term-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.edu-term-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease, color .12s ease;
}

.edu-term-tab-btn:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}

.edu-term-tab-btn.is-active {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #2563eb;
}

.edu-term-latest-grid {
    gap: 12px;
}

.edu-term-explore {
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.edu-term-explore-label {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    flex-shrink: 0;
}

.edu-term-explore .edu-related-pills {
    flex: 1;
    min-width: 0;
}

@media (max-width: 1024px) {
    .edu-term-subjects-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    .edu-term-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .edu-term-subjects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .edu-term-latest-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    .edu-term-explore {
        flex-direction: column;
        align-items: flex-start;
    }

    .edu-term-subjects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px;
    }

    .edu-term-subjects-grid .subject-image-box,
    .edu-term-subjects-grid .subject-image,
    .edu-term-subjects-grid .subject-image-fallback {
        height: 96px;
    }

    .edu-term-subjects-grid--full-image .subject-image-box,
    .edu-term-subjects-grid--full-image .subject-image,
    .edu-term-subjects-grid--full-image .subject-image-fallback {
        height: auto;
    }

    .edu-term-subjects-grid--full-image .subject-image-fallback {
        min-height: 96px;
    }

}

.edu-grade-about {
    font-family: 'Tajawal', 'Inter', system-ui, sans-serif;
    background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}

.edu-grade-about .home-about-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.edu-grade-about .home-about-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.edu-grade-about .home-about-stick {
    width: 4px;
    height: 22px;
    border-radius: 2px;
    background: linear-gradient(#2563eb, #7c3aed);
    flex-shrink: 0;
}

.edu-grade-about .home-about-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

.edu-grade-about .home-about-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.edu-grade-about .home-about-body > p {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    line-height: 1.85;
}



.edu-subject-questions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.edu-subject-question-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 12px 11px;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    background: #f8fafc;
    text-decoration: none;
    color: inherit;
    direction: rtl;
    min-height: 100%;
    transition: border-color .12s ease, background-color .12s ease;
}

.edu-subject-question-card:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.edu-subject-question-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
}

.edu-subject-question-title {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.edu-subject-question-card:hover .edu-subject-question-title {
    color: #2563eb;
}

@media (max-width: 900px) {
    .edu-subject-questions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .edu-subject-questions-grid {
        grid-template-columns: 1fr;
    }

    .edu-subject-questions-grid .edu-subject-question-card:nth-child(n+5) {
        display: none;
    }

    .edu-subject-question-card {
        padding: 10px 11px 9px;
    }

    .edu-subject-question-title {
        font-size: 12px;
    }
}



.edu-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    direction: rtl;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    line-height: 1.4;
}

.edu-breadcrumb::-webkit-scrollbar {
    display: none;
}

.edu-breadcrumb-link,
.edu-breadcrumb-current,
.edu-breadcrumb-sep {
    flex-shrink: 0;
    white-space: nowrap;
}

.edu-breadcrumb-link {
    color: #2563eb;
    text-decoration: none;
}

.edu-breadcrumb-link:hover {
    text-decoration: underline;
}

.edu-breadcrumb-sep {
    color: #94a3b8;
    font-size: 11px;
    line-height: 1;
}

.edu-breadcrumb-current {
    color: #64748b;
}

.edu-breadcrumb-current.is-current {
    color: #334155;
    font-weight: 600;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}



.edu-files-list-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.edu-search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.edu-search-form .site-search-field {
    flex: 1;
}

.edu-search-input {
    width: 100%;
    height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #1e293b;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    padding: 0 14px;
    outline: none;
    box-sizing: border-box;
}

.edu-search-input:focus {
    border-color: #bfdbfe;
    background: #fff;
}

.edu-search-results-count {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.edu-search-section {
    margin-bottom: 18px;
}

.edu-search-section-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.edu-search-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.edu-search-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    background: #f8fafc;
    text-decoration: none;
    color: inherit;
    transition: border-color .12s ease, background-color .12s ease;
}

.edu-search-link:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.edu-search-link-label {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.edu-search-link-meta {
    font-size: 11px;
    color: #64748b;
}

.edu-files-pagination {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.edu-files-empty {
    padding: 28px 16px;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e8eaed;
    border-radius: 12px;
}

@media (max-width: 640px) {
    .edu-search-links {
        grid-template-columns: 1fr;
    }
}



.site-search-field {
    position: relative;
    width: 100%;
}

.site-search-suggest {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 200;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
    max-height: 320px;
    overflow-y: auto;
    padding: 6px;
}

.site-search-suggest-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 10px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background-color .12s ease;
}

.site-search-suggest-item:hover,
.site-search-suggest-item.is-active {
    background: #eff6ff;
}

.site-search-suggest-label {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
}

.site-search-suggest-meta {
    font-size: 11px;
    color: #64748b;
}

.site-search-suggest-empty {
    padding: 10px 12px;
    font-size: 12px;
    color: #64748b;
    text-align: center;
}

.header-search-container {
    position: relative;
}

.header-search-container .site-search-suggest {
    top: calc(100% + 8px);
}

.hero-search-form .site-search-field {
    flex: 1;
    min-width: 0;
}


